Solution class

Class describes solution of fitting text into an outer box.

Constructors

Solution(Text _text, TextStyle style, Size sizeInner, Size sizeOuter)
Constructor.

Properties

fontSizeTests ↔ int
How many font size tests it took to find this solution.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isValid → bool
Whether the inner box of the text is smaller than the outer box.
no setter
isValidSame → bool
Whether the inner box of the text is smaller than the outer box.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizeInner → Size
The size of this text within the outer box.
final
sizeOuter → Size
The size of the outer box. In case padding is set: sizeOuter = sizeOuter + padding
final
style → TextStyle
Font size has been adjusted, all other properties merged into it.
final
text → Text
Returns the text with the applied TextStyle.
no setter
textString → String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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