flutter_thrio library

Functions

getListValue<E>(dynamic params, String key) → List<E>
getMapValue<K, V>(dynamic params, String key) → Map<K, V>
getValue<T>(dynamic params, String key) → T
Get value from params, throw ArgumentError whenkey's value not found .
getValueOrDefault<T>(dynamic params, String key, T defaultValue) → T
Get value from params, return defaultValue whenkey's value not found .
getValueOrNull<T>(dynamic params, String key) → T?
Get value from params.

Typedefs

JsonDeserializer<T> = T? Function(Map<String, dynamic> params)
Signature of callbacks for json deserializer.
JsonSerializer = Map<String, dynamic> Function(T factory<T>())
Signature of callbacks for json serializer.
MethodHandler = Future Function([Map<String, dynamic>? arguments])
Signature of callbacks with bool parameter.
Signature of callbacks with int parameter.
Signature of page builder with RouteSettings.
Signature of page observer callbacks with RouteSettings.
Signature of callbacks with dynamic parameter.
Signature of push begin handler with url.
Signature of push end handler.
Signature of route action.
Signature of route builder with NavigatorPageBuilder and RouteSettings.
Signature of route custom handler.
Signature of route push handler with RouteSettings.
RegisterRouteCustomHandlerFunc = void Function(String, NavigatorRouteCustomHandler , {bool queryParamsDecoded})