Area class

Implemented types

Constructors

Area({required List<Direction> directions})
const
Area.filled({required int width, required int height, int xOffset = 0, int yOffset = 0, bool omitCentre = false})
factory
Area.fromStrings(List<String> directions)
factory
Area.radius(int size, {bool omitCentre = false})
factory

Properties

directions List<Direction>
final
hashCode int
The hash code for this object.
no setterinherited
maxX int
no setter
maxY int
no setter
minX int
no setter
minY int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contains(int file, int rank) bool
override
export() List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
squares(BoardSize size) List<int>
override
toString() String
A string representation of this object.
inherited
translate(int x, int y) Area
override

Operators

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

Constants

radius1 → const Area