ArgumentEncoders class

A set of methods for decoding structured values from a DataSource.

Specifically, these methods decode types that are used by local widgets (q.v. createCoreWidgets).

These methods take a DataSource and a key. The key is a path to the part of the DataSource that the value should be read from. This may identify a map, a list, or a leaf value, depending on the needs of the method.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

colorFilterEncoders Map<Type, ArgumentEncoder<ColorFilter, Map<String, dynamic>?>>
Extension mechanism for colorFilter.
final
curveEncoders Map<Type, ArgumentEncoder<Curve, Map<String, dynamic>?>>
Extension mechanism for curve.
final
decorationEncoders Map<Type, ArgumentEncoder<Decoration, Map<String, dynamic>?>>
Extension mechanism for decoration.
final
gradientEncoders Map<Type, ArgumentEncoder<Gradient, Map<String, dynamic>?>>
Extension mechanism for gradient.
final
gridDelegateEncoders Map<Type, ArgumentEncoder<SliverGridDelegate, Map<String, dynamic>?>>
TODO wombat: All this custom encoders should have a type for every specific class provided to user, let them provide the implementation
final
imageProviderEncoders Map<Type, ArgumentEncoder<ImageProvider<Object>, Map<String, dynamic>?>>
Extension mechanism for imageProvider.
final
maskFilterEncoders Map<Type, ArgumentEncoder<MaskFilter, Map<String, dynamic>>>
Extension mechanism for maskFilter.
final
shaderEncoders Map<Type, ArgumentEncoder<Shader, Map<String, dynamic>?>>
Extension mechanism for shader.
final
shapeBorderEncoders Map<Type, ArgumentEncoder<ShapeBorder, Map<String, dynamic>?>>
Extension mechanism for shapeBorder.
final

Static Methods

alignment(AlignmentGeometry? alignment) Map<String, double>?
Decodes an AlignmentDirectional or Alignment object out of the specified map.
border(BoxBorder? border) List<Map<String, dynamic>?>?
Returns a BorderDirectional from the specified list.
borderRadius(BorderRadiusGeometry? borderRadiusGeometry) List<Map<String, dynamic>?>?
Returns a BorderRadiusDirectional from the specified list.
borderSide(BorderSide? borderSide) Map<String, dynamic>?
Returns a BorderSide from the specified map.
boxConstraints(BoxConstraints? constraints) Map<String, dynamic>?
Decodes the specified map into a BoxConstraints.
boxShadow(Shadow? boxShadow) Map<String, dynamic>?
Returns a BoxShadow from the specified map.
color(Color? color) int?
Returns a Color from the specified integer.
colorFilter(ColorFilter? colorFilter) Map<String, dynamic>?
Returns a ColorFilter from the specified map.
colorMatrix(List<String>? list) List<double?>?
Returns a list of 20 doubles from the specified list.
curve(Curve? curve) → dynamic
Returns a Color from the specified integer.
decoration(Decoration? decoration) Map<String, dynamic>?
Returns a Decoration from the specified map.
decorationImage(DecorationImage? image) Map<String, dynamic>?
Returns a DecorationImage from the specified map.
duration(Duration? duration) int?
Returns a double from the specified double.
edgeInsets(EdgeInsetsGeometry? edgeInsets) List<double>?
Returns an EdgeInsetsDirectional from the specified list.
enumValue<T>(T? key) String?
Returns one of the values of the specified enum T, from the specified string.
fontFeature(FontFeature? feature) Map<String, dynamic>?
Returns a FontFeature from the specified map.
gradient(Gradient? gradient) Map<String, dynamic>?
Returns a Gradient from the specified map.
gridDelegate(SliverGridDelegate? delegate) Map<String, dynamic>?
Returns a SliverGridDelegate from the specified map.
iconData(IconData? icon) Map<String, dynamic>?
Returns an IconData from the specified map.
iconThemeData(IconThemeData? data) Map<String, dynamic>?
Returns an IconThemeData from the specified map.
imageProvider(ImageProvider<Object>? provider) Map<String, dynamic>?
Returns an ImageProvider from the specifed map.
list<S, T>(List<S>? source, [ArgumentEncoder<S, T>? encoder]) List<T>?
Returns a List of T values from the specified list, using the given decoder to parse each value.
locale(Locale? locale) String?
Returns a Locale from the specified string.
maskFilter(MaskFilter? filter) Map<String, dynamic>?
Returns a MaskFilter from the specified map.
matrix(Matrix4? matrix) List<double>?
Returns a list of 16 doubles from the specified list.
offset(Offset? offset) Map<String, dynamic>?
Returns an Offset from the specified map.
paint(Paint? paint) Map<String, dynamic>?
Returns a Paint from the specified map.
radius(Radius? radius) Map<String, double>?
Returns a Radius from the specified map.
rect(Rect? rect) Map<String, dynamic>?
Returns a Rect from the specified map.
shader(Shader? shader) Map<String, dynamic>?
Returns a Shader based on the specified map.
shapeBorder(ShapeBorder? shapeBorder) Map<String, dynamic>?
Returns a ShapeBorder from the specified map or list.
string(String? value) String?
Returns a string from the specified string.
strutStyle(StrutStyle? style) Map<String, dynamic>?
Returns a StrutStyle from the specified map.
textDecoration(TextDecoration? decoration) → dynamic
Returns a TextDecoration from the specified list or string.
textHeightBehavior(TextHeightBehavior? behavior) Map<String, dynamic>?
Returns a TextHeightBehavior from the specified map.
textStyle(TextStyle? style) Map<String, dynamic>?
Returns a TextStyle from the specified map.
visualDensity(VisualDensity? density) Map<String, dynamic>?
Returns a VisualDensity from the specified string or map.
widget(Widget? widget) → ConstructorCall?
widgetList(List<Widget>? widgets) List<ConstructorCall>?