Sentinel class Null safety

A Sentinel is used to indicate that the normal response is not available.

We use a Sentinel instead of an error for these cases because they do not represent a problematic condition. They are normal.

Inheritance

Constructors

Sentinel({String? kind, String? valueAsString})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
json Map<String, dynamic>?
read / writeinherited
kind String?
What kind of sentinel is this?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type String
read-onlyoverride
valueAsString String?
A reasonable string representation of this sentinel.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(Map<String, dynamic>? json) Sentinel?
override