resource_result 1.0.1
resource_result: ^1.0.1 copied to clipboard
A package that provides a Resource class of any type. Supports the states Success, Failure and Loading.
1.0.1 #
- Added
combinemethod toResourceclass.
1.0.0 #
-
Minimum Dart SDK version is 3.0.0.
-
Sealed the class
Resource. -
Added
dataOrNull,tryGetData&tryGetMessagemethods toResourceclass. -
The
resolvemethod now has a generic return type. -
Removed
Errortype parameter fromFailureclass.
0.0.8 #
- Fixed
mapmethod toResourceclass.
0.0.7 #
-
Added
mapmethod toResourceclass. -
Bump dart sdk to 4.0.0.
0.0.6 #
- Only one type parameter for
Success,Loading&Failure.
0.0.5 #
- Error is not a type parameter. It is a class which must be extended by the client:
class MyAppError extends Error{
MyAppError(String? message) : super(message);
}
Failure failureWithMyAppError = Failure(MyAppError("My message"));
0.0.2 & 0.0.3 & 0.0.4 #
- Improved documentation.
0.0.1 #
- Initial release: Basic functionality provided.