Skip to content

Instantly share code, notes, and snippets.

@FlutterWiz
Created June 18, 2022 12:14
Show Gist options
  • Save FlutterWiz/431f66df9a6787c05e57c3084a7fac55 to your computer and use it in GitHub Desktop.
Save FlutterWiz/431f66df9a6787c05e57c3084a7fac55 to your computer and use it in GitHub Desktop.
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