SourceTagStyle class
How a [1] citation chip 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
- SourceTagStyle({Color? backgroundColor, TextStyle? textStyle, double? size, BoxShape? shape, EdgeInsetsGeometry? padding})
-
Creates a SourceTagStyle. Null fields defer to the theme, then to the default.
const
Properties
- backgroundColor → Color?
-
Chip fill. Defaults to
ColorScheme.onInverseSurface.final - hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsetsGeometry?
-
Space around the chip. Defaults to 2.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → BoxShape?
-
Chip shape. Defaults to a circle.
final
- size → double?
-
Chip diameter. Defaults to 20.
final
- textStyle → TextStyle?
-
Number style. Defaults to the surrounding style.
final
Methods
-
copyWith(
{Color? backgroundColor, TextStyle? textStyle, double? size, BoxShape? shape, EdgeInsetsGeometry? padding}) → SourceTagStyle - A copy with the given fields replaced.
-
merge(
SourceTagStyle? other) → SourceTagStyle -
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) → SourceTagStyle - 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(
SourceTagStyle? a, SourceTagStyle? b, double t) → SourceTagStyle? - Linearly interpolates between two styles.