InvalidObject class

Represents an invalid instance of a Modelable object.

Inheritance
  • Object
  • Modelable
  • InvalidObject

Constructors

InvalidObject()
Creates a new invalid object.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Model's id.
finalinherited
invalid bool
True if the model is marked as invalid, and it's data should be ignored.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
The model's user id.
finalinherited

Methods

copyWith({String? id, String? userId, bool? invalid}) → Modelable
Copies an instance with the possibility of overriding certain fields.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toModel() → Model
Converts the instance to a Model.
override
toString() String
A string representation of this object.
inherited

Operators

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