Created
June 18, 2022 12:14
-
-
Save FlutterWiz/431f66df9a6787c05e57c3084a7fac55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
part 'character.freezed.dart'; | |
@freezed | |
class CharacterModel with _$CharacterModel { | |
factory CharacterModel({ | |
required String characterName, | |
required String characterImgUrl, | |
}) = _CharacterModel; | |
const CharacterModel._(); | |
factory CharacterModel.empty() => CharacterModel(characterName: "", characterImgUrl: ""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment