LabelStackSeparator class final

A separator character in a label, where a line break may be inserted in long text.

A single separator consists of:

  • The separator character that should potentially be replaced by a line break
  • If the separator should always be used for line break
  • If the separator should remain visible
  • If the separator should appear at the end of one row, or the beginning of the next
Implemented types
Mixed-in types

Constructors

LabelStackSeparator()
Creates a label stack separator with default values.
factory
LabelStackSeparator.fromJson(Map<String, dynamic> json)
Creates an instance of this class from JSON of the data type used by jsonDecode.
factory
LabelStackSeparator.fromJsonString(String jsonString)
Creates an instance of this class from a JSON String.
factory

Properties

breakPosition LabelStackSeparatorBreakPosition
The position where the separator will be written, if used and remaining visible.
getter/setter pair
forced bool
Whether a line break must be inserted when the LabelStackSeparator.separator is encountered.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separator String
A String intended to describe one code point.
getter/setter pair
visible bool
Whether the separator should still be visible, if chosen as a line break position.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
toJsonString() String
Returns a JSON representation of this Object as a String.
override
toString() String
A string representation of this object.
inherited

Operators

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