convert class

Defines the String-to-value conversion for this field.

The runtime converts String to any of the Dart primitives, but needs explicit code to convert any other types. source The name of a method that takes a single String and returns the desired type.

Example: ` @tag('loc') class Location { @convert('Uri.parse') final Uri loc;

NameTag(this.loc); } `

Constructors

convert(String source)
const

Properties

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

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