loadable error screen, reload actions, autoreload
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'loading_error.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class LoadingError with _$LoadingError {
|
||||
const factory LoadingError({
|
||||
required String message,
|
||||
@Default(false) bool enableRetry,
|
||||
@Default(null) void Function()? retry,
|
||||
}) = _LoadingError;
|
||||
}
|
Reference in New Issue
Block a user