RpcBool class

Wrapper for a boolean value.

Inheritance

Constructors

RpcBool(bool value)
Creates a new RpcBool.
const
RpcBool.fromJson(Map<String, dynamic> json)
Creates RpcBool from JSON: a bool, a number (non-zero is true) or the strings true, false, 1, 0; no value is false. Anything else throws FormatException rather than reading as false.
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
value → bool
The wrapped primitive value.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes primitive value to JSON-ready map.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Properties

codec → RpcCodec<RpcBool>
Default codec for RpcBool.
no setter