Created
June 9, 2023 14:21
-
-
Save nuesslerm/806ac7de002e6dbfb34f0366bbb5e30f to your computer and use it in GitHub Desktop.
Revisions
-
nuesslerm created this gist
Jun 9, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ void main() { final ChatState state = ChatStateLoading(); final stateLoaded = state as ChatStateLoaded?; print('stateLoaded: $stateLoaded'); } abstract class ChatState { String? appBarTitle; String? appBarSubtitle; String? appBarAvatarUrl; } class ChatStateLoading extends ChatState {} class ChatStateLoaded extends ChatState { ChatStateLoaded({ required this.chat, }); final String chat; } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ # mellow-end-2335 Created with <3 with [dartpad.dev](https://dartpad.dev).