Created
July 6, 2022 19:10
-
-
Save pawelsa/12abc6b2f137331bc3d5f6f8d97a793f to your computer and use it in GitHub Desktop.
This file contains 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
@freezed | |
class StreamData<T> with _$StreamData<T> { | |
factory StreamData.ready(T data) = ReadyData<T>; | |
factory StreamData.loading(T data) = LoadingData<T>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment