Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 67e5823

Browse files
author
Martin Braun
committed
chore: remove ambiguate call
1 parent 22f82fb commit 67e5823

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/src/autocomplete_search.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class AutoCompleteSearchState extends State<AutoCompleteSearch> {
7171
void initState() {
7272
super.initState();
7373
if (widget.initialSearchString != null) {
74-
_ambiguate(WidgetsBinding.instance)!.addPostFrameCallback((_) {
74+
WidgetsBinding.instance.addPostFrameCallback((_) {
7575
controller.text = widget.initialSearchString!;
7676
if (widget.searchForInitialValue!) {
7777
_onSearchInputChange();
@@ -319,12 +319,4 @@ class AutoCompleteSearchState extends State<AutoCompleteSearch> {
319319
clearOverlay() {
320320
_clearOverlay();
321321
}
322-
323-
/// This allows a value of type T or T? to be treated as a value of type T?.
324-
///
325-
/// We use this so that APIs that have become non-nullable can still be used
326-
/// with `!` and `?` on the stable branch.
327-
// TODO: Remove this, once Flutter 2 support is dropped
328-
// See https://github.com/flutter/flutter/issues/64830
329-
T? _ambiguate<T>(T? value) => value;
330322
}

0 commit comments

Comments
 (0)