BoolConverter class

bool 转换,true | num > 0 | '1' | 'true',默认值 false

Inheritance

Constructors

BoolConverter({bool defaultValue = false})
const
BoolConverter.defaultFalse()
const
BoolConverter.defaultTrue()
const

Properties

defaultValue bool
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJson(Object? json) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(bool object) Object?
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited