Skip to content

Commit

Permalink
Do not store Logger reference in mutable private var to avoid immutab…
Browse files Browse the repository at this point in the history
…le linter warning
  • Loading branch information
hacker-cb committed Oct 1, 2019
1 parent 597c1e2 commit 41e5661
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.1

- Do not store Logger reference in mutable private var to avoid immutable linter warning

## 1.0.0

- Initial version
3 changes: 1 addition & 2 deletions lib/src/loggable.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:logging/logging.dart';

class Loggable {
Logger _logger;
Logger get log => _logger ??= Logger(runtimeType.toString());
Logger get log => Logger(runtimeType.toString());
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: loggable
description: Dart Loggable mixin.
version: 1.0.0
version: 1.0.1
homepage: https://github.com/Hacker-CB/dart-loggable.git
author: Pavel Sokolov <pavel@sokolov.me>

Expand Down

0 comments on commit 41e5661

Please sign in to comment.