Model class

Model



A generic interface for A Business Model

Repositories, Adapters, Responses, and Interactors can generalize input/output using this interface

The goal for this interfaces is to increase and simplify polymorphism across semantic models

Usage



class User extends Model {
  final String name;
  final String email;
  final String password;

  const User({
    this.name,
    this.email,
    this.password,
  });

}
Implementers

Constructors

Model()
const
Model.none()
A static const empty instance for the object
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isDefined bool
Returns true if the object is defined.

Always check if the object is defined before using it.
no setter
isUndefined bool
Returns true if the object is undefined.

Always check if the object is undefined before using it.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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