fix: resolve flutter analyze warnings - unused imports, unnecessary casts
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
@@ -53,7 +52,7 @@ void main() {
|
||||
'company': null,
|
||||
};
|
||||
|
||||
final company = client['company'] as String?;
|
||||
final company = client['company'];
|
||||
expect(company, isNull);
|
||||
});
|
||||
|
||||
@@ -64,7 +63,7 @@ void main() {
|
||||
'company': '',
|
||||
};
|
||||
|
||||
final company = client['company'] as String?;
|
||||
final company = client['company'];
|
||||
final hasCompany = company != null && company.isNotEmpty;
|
||||
expect(hasCompany, isFalse);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user