JsonBoolean extension type
A zero-cost wrapper around a JSON boolean.
This type exists to provide a subtype of JsonValue that is a boolean.
Constructors
- JsonBoolean(bool _value)
-
const
- JsonBoolean.parse(String input)
-
Parses and returns the given
input
as a boolean.factory -
JsonBoolean.parseUtf8(List<
int> bytes) -
Parses and returns the given UTF8-encoded
bytes
as a boolean.factory
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
-
asAny(
) → JsonAny -
Converts this object into a JsonAny.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns either
"true"
fortrue
and"false"
forfalse
.inherited
Operators
-
operator &(
bool other) → bool -
The logical conjunction ("and") of this and
other
.inherited -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator ^(
bool other) → bool -
The logical exclusive disjunction ("exclusive or") of this and
other
.inherited -
operator |(
bool other) → bool -
The logical disjunction ("inclusive or") of this and
other
.inherited