Axel class
Model of a single character used. Portmanteau of "ASCII" and "pixel".
- Annotations
-
- @freezed
Constructors
- Axel(String character, {@Default.new(Colors.foreground) ColorPlaceholder color, @Default.new(Colors.background) ColorPlaceholder background, @Default.new(TextStyle()) TextStyle textStyle, @Default.new(0) int flag})
-
Model of a single character used. Portmanteau of "ASCII" and "pixel".
charactershould be a single-character string. Longer strings are not clipped (to support strange unicode characters) but will break rendering.coloris foreground color,backgroundbackground.textStyleis self-explanatory.flagshould be 0 for user-created Axels. 1 represents border placeholder Axels, 2 represents opaque spaces (used in the Overlay component). 3+ are currently undefined.constfactory
Properties
- background → ColorPlaceholder
-
no setterinherited
- character → String
-
no setterinherited
- color → ColorPlaceholder
-
no setterinherited
-
copyWith
→ $AxelCopyWith<
Axel> -
Create a copy of Axel
with the given fields replaced by the non-null parameter values.
no setterinherited
- flag → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBorder → bool
-
Is this Axel a border placeholder?
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle
-
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 *(
int multiple) → List< Axel> - Produces a list of duplicates of this Axel.
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- borderPlaceholder → const Axel
- Border placeholder. Add a ConnectedBorder parent to replace with connected borders.
- borderPlaceholderHorizontal → const Axel
- Border placeholder which only connects horizontally.
- borderPlaceholderVertical → const Axel
- Border placeholder which only connects vertically.
- newLine → const Axel
- Axel used to end rows in rendering. Do not use.
- opaqueSpace → const Axel
- Space used in Overlay component for dialogs.
- space → const Axel
- Empty space.