initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
|
|
@ -0,0 +1,45 @@
|
|||
part of 'background_images_bloc.dart';
|
||||
|
||||
abstract class BackgroundImagesState extends Equatable {
|
||||
const BackgroundImagesState();
|
||||
|
||||
@override
|
||||
String toString() => runtimeType.toString();
|
||||
}
|
||||
|
||||
class BackgroundImagesInitialState extends BackgroundImagesState {
|
||||
const BackgroundImagesInitialState();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class BackgroundImagesLoadingState extends BackgroundImagesState {
|
||||
const BackgroundImagesLoadingState();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class BackgroundImagesLoadedState extends BackgroundImagesState {
|
||||
final List<BackgroundImage> backgroundImages;
|
||||
|
||||
const BackgroundImagesLoadedState(this.backgroundImages);
|
||||
|
||||
@override
|
||||
List<Object> get props => [backgroundImages];
|
||||
}
|
||||
|
||||
class BackgroundImagesErrorState extends BackgroundImagesState
|
||||
implements ErrorState {
|
||||
@override
|
||||
final String message;
|
||||
|
||||
@override
|
||||
final Exception? cause;
|
||||
|
||||
const BackgroundImagesErrorState({required this.message, this.cause});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [message, cause];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue