netglade_utils library
NetGlade Dart utils library used internally at netglade.
Classes
Enums
Extensions
-
CopyExtensions
on Copy<
T> ? - DateTimeExtensions on DateTime
-
ErrorAnswer
on When<
Future< Result< >T, E> > -
ErrorAnswerOr
on When<
FutureOr< Result< >T, E> > -
FutureExtensions
on Future<
T> -
FutureVoidAnswer
on When<
Future< void> > -
GenericAnswer
on When<
Future< T> > -
IterableExtensions
on Iterable<
T> - NullableStringExtensions on String?
- ObjectExtensions on Object?
- Helper methods for object casting.
-
OptionExtension
on Option<
T> -
ResultExtension
on Result<
S, E> -
StreamedAnswer
on When<
Stream< T> > -
StreamSubscriptionAnswer
on When<
StreamSubscription< T> > - StringExtensions on String
-
SuccessAnswer
on When<
Future< Result< >T, E> > -
SuccessAnswerOr
on When<
FutureOr< Result< >T, E> > - VerificationResultEx on VerificationResult
-
VoidAnswer
on When<
void>
Typedefs
-
Copy<
T> = T? Function()? - Used to determine between using default parameter value and passing null.
-
ErrorCallback<
T, S, E> = T Function(Error< S, E> value) -
ErrorValueCallback<
T, E> = T Function(E error) -
NoneCallback<
TResult> = TResult Function() -
NullableErrorCallback<
T, S, E> = T? Function(Error< S, E> value) -
NullableNoneCallback<
TResult> = TResult? Function() -
NullableSomeCallback<
TResult, T> = TResult? Function(Some< T> value) -
NullableSuccessCallback<
T, S, E> = T? Function(Success< S, E> value) - OnTakingTooLongCallback = void Function()
-
Selector<
T, K> = K Function(T selectFrom) -
SomeCallback<
TResult, T> = TResult Function(Some< T> value) -
SuccessCallback<
T, S, E> = T Function(Success< S, E> value) -
SuccessValueCallback<
T, S> = T Function(S success) -
ValueNoneCallback<
TResult> = TResult Function() -
ValueSomeCallback<
TResult, T> = TResult Function(T some)