Heatmap

This commit is contained in:
2025-10-12 18:47:01 +08:00
parent 5327f04ec0
commit 6124dbfd79
6 changed files with 854 additions and 9 deletions

View File

@@ -117,10 +117,7 @@ return $default(_that);case _:
final _that = this;
switch (_that) {
case _AutocompleteSuggestion():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
return $default(_that);}
}
/// A variant of `map` that fallback to returning `null`.
///
@@ -179,10 +176,7 @@ return $default(_that.type,_that.keyword,_that.data);case _:
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String type, String keyword, dynamic data) $default,) {final _that = this;
switch (_that) {
case _AutocompleteSuggestion():
return $default(_that.type,_that.keyword,_that.data);case _:
throw StateError('Unexpected subclass');
}
return $default(_that.type,_that.keyword,_that.data);}
}
/// A variant of `when` that fallback to returning `null`
///