Skip to content

Commit

Permalink
remove deprecatd analyzer calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tshedor committed Aug 26, 2024
1 parent 5ac231e commit 063ad38
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ class SupabaseSerialize extends SupabaseSerdesGenerator

if (checker.toJsonMethod != null) {
return checker.toJsonMethod!.returnType
.getDisplayString(withNullability: false)
.getDisplayString()
.replaceAll('?', '')
.replaceAll(typeRemover, '');
}

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

0 comments on commit 063ad38

Please sign in to comment.