dart fix --apply --code=prefer_final_fields

This commit is contained in:
Caleb Jasik 2025-02-13 11:21:00 -06:00
parent 0a4854ccd6
commit 4359b4783c
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class Site {
late EventChannel _updates; late EventChannel _updates;
/// Signals that something about this site has changed. onError is called with an error string if there was an error /// Signals that something about this site has changed. onError is called with an error string if there was an error
StreamController _change = StreamController.broadcast(); final StreamController _change = StreamController.broadcast();
// Identifiers // Identifiers
late String name; late String name;

View file

@ -32,7 +32,7 @@ class StaticHostsScreen extends StatefulWidget {
} }
class _StaticHostsScreenState extends State<StaticHostsScreen> { class _StaticHostsScreenState extends State<StaticHostsScreen> {
Map<Key, _Hostmap> _hostmap = {}; final Map<Key, _Hostmap> _hostmap = {};
bool changed = false; bool changed = false;
@override @override

View file

@ -10,7 +10,7 @@ bool DEFAULT_TRACK_ERRORS = true;
class Settings { class Settings {
final _storage = Storage(); final _storage = Storage();
StreamController _change = StreamController.broadcast(); final StreamController _change = StreamController.broadcast();
var _settings = Map<String, dynamic>(); var _settings = Map<String, dynamic>();
bool get useSystemColors { bool get useSystemColors {