Skip to content

Commit 063ad38

Browse files
committed
remove deprecatd analyzer calls
1 parent 5ac231e commit 063ad38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/brick_supabase_generators/lib/src/supabase_serialize.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ class SupabaseSerialize extends SupabaseSerdesGenerator
7474

7575
if (checker.toJsonMethod != null) {
7676
return checker.toJsonMethod!.returnType
77-
.getDisplayString(withNullability: false)
77+
.getDisplayString()
78+
.replaceAll('?', '')
7879
.replaceAll(typeRemover, '');
7980
}
8081

8182
// remove arg types as they can't be declared in final fields
82-
return type.getDisplayString(withNullability: false).replaceAll(typeRemover, '');
83+
return type.getDisplayString().replaceAll('?', '').replaceAll(typeRemover, '');
8384
}
8485
}

0 commit comments

Comments
 (0)