Skip to content

Commit

Permalink
Add logsDebugHelper.initialMinLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Nov 7, 2023
1 parent 4a251d2 commit 57ae361
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/helpers/logs/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ import 'data.dart';
class LogsDebugHelper extends StatefulWidget {
const LogsDebugHelper(
this.logs, {
this.initialMinLevel = DiagnosticLevel.debug,
this.title = const Text('Logs'),
});

final LogCollection logs;

final DiagnosticLevel initialMinLevel;
final Widget title;

@override
State<LogsDebugHelper> createState() => _LogsDebugHelperState();
}

class _LogsDebugHelperState extends State<LogsDebugHelper> {
var _minLevel = DiagnosticLevel.debug;
late var _minLevel = widget.initialMinLevel;
var _isOldestFirst = true;

@override
Expand Down

0 comments on commit 57ae361

Please sign in to comment.