Move to Flutter 3.47, use the improvements that come with this (#64)
Reviewed-on: #64
This commit is contained in:
parent
01b13b4764
commit
077044ec19
157 changed files with 1366 additions and 1457 deletions
|
|
@ -3,15 +3,16 @@ import "package:freezed_annotation/freezed_annotation.dart";
|
|||
part "emoji.freezed.dart";
|
||||
part "emoji.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class Emoji with _$Emoji {
|
||||
const factory Emoji({
|
||||
required String emoji,
|
||||
required String category,
|
||||
required IList<String> aliases,
|
||||
required String description,
|
||||
required IList<String> tags,
|
||||
}) = _Emoji;
|
||||
@Freezed(toJson: false, fromJson: false)
|
||||
@JsonSerializable()
|
||||
class Emoji({
|
||||
required final String emoji,
|
||||
required final String category,
|
||||
required final IList<String> aliases,
|
||||
required final String description,
|
||||
required final IList<String> tags,
|
||||
}) with _$Emoji {
|
||||
Map<String, Object?> toJson() => _$EmojiToJson(this);
|
||||
|
||||
factory Emoji.fromJson(Map<String, Object?> json) => _$EmojiFromJson(json);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue