Created
June 18, 2022 12:17
-
-
Save FlutterWiz/2fc924773bc9ffce5432ca29606bff3b 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 'search_state.freezed.dart'; | |
@freezed | |
class SearchState with _$SearchState { | |
factory SearchState({ | |
required List<CharacterModel> characterList, | |
}) = _SearchState; | |
const SearchState._(); | |
factory SearchState.empty() => SearchState( | |
characterList: [], | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment