mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-08 09:15:13 -04:00
lint work
This commit is contained in:
parent
6e8725f569
commit
fe9d9f8aca
8 changed files with 129 additions and 117 deletions
|
@ -67,7 +67,7 @@ class CallbackPrinter extends LoggyPrinter {
|
|||
callback?.call(record);
|
||||
}
|
||||
|
||||
void setCallback(Function(LogRecord)? cb) {
|
||||
void setCallback(void Function(LogRecord)? cb) {
|
||||
callback = cb;
|
||||
}
|
||||
}
|
||||
|
@ -80,9 +80,9 @@ extension TraceLoggy on Loggy {
|
|||
}
|
||||
|
||||
LogOptions getLogOptions(LogLevel? level) => LogOptions(
|
||||
level ?? LogLevel.all,
|
||||
stackTraceLevel: LogLevel.error,
|
||||
);
|
||||
level ?? LogLevel.all,
|
||||
stackTraceLevel: LogLevel.error,
|
||||
);
|
||||
|
||||
class RootLoggy implements LoggyType {
|
||||
@override
|
||||
|
|
|
@ -5,12 +5,13 @@ class StateLogger extends ProviderObserver {
|
|||
const StateLogger();
|
||||
@override
|
||||
void didUpdateProvider(
|
||||
ProviderBase provider,
|
||||
ProviderBase<Object?> provider,
|
||||
Object? previousValue,
|
||||
Object? newValue,
|
||||
ProviderContainer container,
|
||||
) {
|
||||
log.debug('''{
|
||||
log.debug('''
|
||||
{
|
||||
provider: ${provider.name ?? provider.runtimeType},
|
||||
oldValue: $previousValue,
|
||||
newValue: $newValue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue