We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code:
@DataClass() final class $UserIsAuthenticating with _$$UserIsAuthenticating { const $UserIsAuthenticating({required this.principal}); final Principal principal; }
generates this method:
@override String toString() => (ClassToString('$UserIsAuthenticating') ..add('principal', _self.principal)) .toString(); }
So Dart considers the $ as the string interpolator.
$
Fix: the generator should sanitize $ characters or using raw strings (using the r string prefix):
r
@override String toString() => (ClassToString(r'$UserIsAuthenticating') ..add('principal', _self.principal)) .toString(); }
data_class/mek_data_class_generator/lib/src/creators/to_string_creator.dart
Line 45 in b682dc5
The text was updated successfully, but these errors were encountered:
You should not use dollar signs to name your classes since anything that starts with a dollar sign is usually generated.
Sorry, something went wrong.
Fixes in release 2.0.2
No branches or pull requests
This code:
generates this method:
So Dart considers the
$
as the string interpolator.Fix: the generator should sanitize
$
characters or using raw strings (using ther
string prefix):data_class/mek_data_class_generator/lib/src/creators/to_string_creator.dart
Line 45 in b682dc5
The text was updated successfully, but these errors were encountered: