RpcBool class
Wrapper for a boolean value.
- Inheritance
-
- Object
- RpcPrimitiveMessage<
bool> - RpcBool
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
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