EntityKind class

The three kinds of Entities : SimpleEntities, IterableEntities and Iterable2Entities.

Annotations
  • @freezed

Constructors

EntityKind.iterable2Entity()
const
factory
EntityKind.iterableEntity()
const
factory
EntityKind.simpleEntity()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult simpleEntity(_SimpleEntity value), required TResult iterableEntity(_IterableEntity value), required TResult iterable2Entity(_Iterable2Entity value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? simpleEntity(_SimpleEntity value)?, TResult? iterableEntity(_IterableEntity value)?, TResult? iterable2Entity(_Iterable2Entity value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult simpleEntity(_SimpleEntity value)?, TResult iterableEntity(_IterableEntity value)?, TResult iterable2Entity(_Iterable2Entity value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult simpleEntity()?, TResult iterableEntity()?, TResult iterable2Entity()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult simpleEntity(), required TResult iterableEntity(), required TResult iterable2Entity()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? simpleEntity()?, TResult? iterableEntity()?, TResult? iterable2Entity()?}) → TResult?
inherited

Operators

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