Taggable class abstract

A base class to facilitate operator== and hashCode overrides.

class ConstTest extends Taggable {
  const ConstTest(this.a);

  final int a;

  @override
  List<Object> get props => [a];
}
Implementers
Annotations

Constructors

Taggable()
A class that helps implement equality without needing to explicitly override == and hashCode. Taggables override their own == operator and hashCode based on their props.
const

Properties

caseSensitive bool
If true, string comparison will be case sensitive.
no setter
hashCode int
The hash code for this object.
no setteroverride
props List<Object>
The List of props (properties) which will be used to determine whether two Taggables are equal.
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.
override

Operators

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