LatexStyle class
How rendered maths is drawn.
Every field is optional. An unset field falls back to the theme, then to the value the package used before this style existed — so setting one field changes one thing and nothing else moves.
A style on the widget wins over the theme per field, not per object.
- Annotations
Constructors
- LatexStyle({TextStyle? textStyle, EdgeInsetsGeometry? padding, Color? backgroundColor, Radius? borderRadius, bool? scrollBlockHorizontally})
-
Creates a LatexStyle. Null fields defer to the theme, then to the default.
const
Properties
- backgroundColor → Color?
-
Fill behind block maths. Defaults to none.
final
- borderRadius → Radius?
-
Corner rounding of that fill.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsetsGeometry?
-
Space around block maths. Defaults to none.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollBlockHorizontally → bool?
-
Whether block maths scrolls sideways rather than overflowing. Defaults to false.
final
- textStyle → TextStyle?
-
Applied on top of the surrounding style.
final
Methods
-
copyWith(
{TextStyle? textStyle, EdgeInsetsGeometry? padding, Color? backgroundColor, Radius? borderRadius, bool? scrollBlockHorizontally}) → LatexStyle - A copy with the given fields replaced.
-
merge(
LatexStyle? other) → LatexStyle -
This style, with any unset field taken from
other, field by field. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
ColorScheme scheme) → LatexStyle - This style with every remaining default filled in.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
LatexStyle? a, LatexStyle? b, double t) → LatexStyle? - Linearly interpolates between two styles.