intermediate
This commit is contained in:
@@ -6,7 +6,7 @@ class EquatableCollection<T> with FastEquatable {
|
||||
|
||||
EquatableCollection(this.collection, {required this.immutable})
|
||||
: assert(
|
||||
collection is Map || collection is Iterable,
|
||||
collection is Map || collection is Iterable || collection == null,
|
||||
'Collection type not supported',
|
||||
);
|
||||
|
||||
|
||||
@@ -9,9 +9,12 @@ class WebPageInfo {
|
||||
final String? title;
|
||||
final BrowserIcon? favicon;
|
||||
|
||||
bool get isPageInfoComplete =>
|
||||
(title?.isNotEmpty ?? false) && favicon != null;
|
||||
|
||||
WebPageInfo({
|
||||
required this.url,
|
||||
required this.title,
|
||||
required this.favicon,
|
||||
this.title,
|
||||
this.favicon,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user