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); } `
Properties
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