JsonArgDecoder class

An annotation to be placed on a function that can decode (parse) a particular widget parameter. This can be used to perform custom processing, to provide custom defaults, or to simply decode values that have no built in decoders.

This requires the name (or alias) of the parameter from the Widget being built so the code generator knows to use this method and not try to use a default decoder.

The function that is annotated with this must be an instance function.

Annotations
  • @Target({TargetKind.method})

Constructors

JsonArgDecoder(String param)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
param String
final
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