update
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
part of 'table_loader_bloc.dart';
|
||||
|
||||
@freezed
|
||||
class TableLoaderState with _$TableLoaderState {
|
||||
factory TableLoaderState({
|
||||
required List<Table> tables,
|
||||
required Option<TableFailure> failureOption,
|
||||
@Default(false) bool isFetching,
|
||||
@Default(false) bool hasReachedMax,
|
||||
@Default(1) int page,
|
||||
}) = _TableLoaderState;
|
||||
|
||||
factory TableLoaderState.initial() =>
|
||||
TableLoaderState(tables: [], failureOption: none());
|
||||
}
|
||||
Reference in New Issue
Block a user