SuperConverter<T> class abstract

Implementers

Constructors

SuperConverter()

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

canHandle<Child>() bool
handle(dynamic value, {T? defaultValue}) → T?
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

dateFormats List<DateFormat>
final

Static Methods

convert<T>(dynamic value, {T? defaultValue, SuperConverter<T>? converter}) → T
convert in case of single item
convertToList<O>(dynamic value, {List<O>? defaultValue, bool skipInvalid = false, SuperConverter<O>? converter}) List<O>
isSubType<Super, Child>() bool
registerConverters(List<SuperConverter> converters) → dynamic
register multi converter into the list
registerDateFormats(List<DateFormat> formats) → dynamic
date formats used to convert string into dates