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
@JsonSerializable() class FailState extends WeatherState { const FailState({required String cityName, required Units units}) : super(cityName: cityName, units: units); factory FailState.fromJson(Map<String, dynamic> json) => _$FailStateFromJson(json); Map<String, dynamic> toJson() => _$FailStateToJson(this); } @JsonSerializable() class NotFoundState extends WeatherState { const NotFoundState({required String cityName, required Units units}) : super(cityName: cityName, units: units); factory NotFoundState.fromJson(Map<String, dynamic> json) => _$NotFoundStateFromJson(json); Map<String, dynamic> toJson() => _$NotFoundStateToJson(this); }
I don't see cityName and units use anywhere for FailState and NotFoundState
FailState
NotFoundState
The text was updated successfully, but these errors were encountered:
I suggest you read and use this instead Creating a Non-Instantiable, Non-Extendable Class and Are there any sealed classes alternatives in Dart 2.0?
Sorry, something went wrong.
a better implementation for Kotlin's sealed class in Dart dart-lang/language#349 (comment)
No branches or pull requests
I don't see cityName and units use anywhere for
FailState
andNotFoundState
The text was updated successfully, but these errors were encountered: