Shape enum

A factory that returns a BasicShape object.

Inheritance

Constructors

Shape({required Type object})
A constructor that takes an object as a parameter.
const

Values

cross → const Shape
Shape(object: Cross)
square → const Shape
Shape(object: Square)

Properties

build → BasicShape
A getter that returns a BasicShape object.
read-only
hashCode → int
The hash code for this object.
read-onlyinherited
index → int
A numeric identifier for the enumerated value.
read-onlyinherited
object → Type
A type of object that is passed to the constructor.
final
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

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

Constants

values → const List<Shape>
A constant List of the values in this enum, in order of their declaration.
[cross, square]