menu
pharaoh package
documentation
pharaoh_next.dart
ezOptional class
ezOptional class
dark_mode
light_mode
ezOptional
class
Inheritance
Object
ClassPropertyValidator
<
Object
>
ezOptional
Constructors
ezOptional
(
Type
type
, {
Object
?
defaultValue
})
const
Properties
defaultVal
→
Object
?
final
inherited
defaultValue
→
Object
?
final
hashCode
→
int
The hash code for this object.
no setter
inherited
name
→
String
?
final
inherited
optional
→
bool
TODO: we need to be able to infer nullability also from the type we'll need reflection for that, tho currently, the reason i'm not doing it is because of the amount of code the library (reflectable) generates just to enable this capability
no setter
override
propertyType
→
Type
no setter
override
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
type
→
Type
final
validator
→ EzValidator
<
Object
>
no setter
inherited
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
pharaoh package
documentation
pharaoh_next
ezOptional class
pharaoh_next library