JsonArgAlias class

An annotation to be placed on the building buildCustom function that can alias a particular parameter. A typical use case for this would be to maintain JSON compatibility if a parameter is renamed, or to standardize names across a family of widgets (like aliasing slivers to children on SliverGrid for consistency).

Annotations
  • @Target({TargetKind.method})

Constructors

JsonArgAlias({required String alias, required String name})
const

Properties

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