Skip to content

Instantly share code, notes, and snippets.

@umuieme
Created December 13, 2022 09:05
Show Gist options
  • Save umuieme/f7b193b9f25019cc049dce06f64b2cb9 to your computer and use it in GitHub Desktop.
Save umuieme/f7b193b9f25019cc049dce06f64b2cb9 to your computer and use it in GitHub Desktop.
part of '$cubitname$.dart';
@immutable
abstract class $blocName$State extends Equatable{
@override
List<Object?> get props => [];
}
class $blocName$Initial extends $blocName$State {}
class $blocName$LoadInProgress extends $blocName$State{
}
class $blocName$LoadFailure extends $blocName$State{
final String error;
$blocName$LoadFailure(this.error);
}
class $blocName$LoadSuccess extends $blocName$State {
$END$
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment