ConnectorThemeData class
Defines the visual properties of SolidLineConnector, connectors inside TimelineNode.
Descendant widgets obtain the current ConnectorThemeData object using
ConnectorTheme.of(context). Instances of ConnectorThemeData can be
customized with ConnectorThemeData.copyWith.
Typically a ConnectorThemeData is specified as part of the overall TimelineTheme with TimelineThemeData.connectorTheme.
All ConnectorThemeData properties are null by default. When null, the
widgets will provide their own defaults.
See also:
- TimelineThemeData, which describes the overall theme information for the timeline.
- Mixed-in types
- Annotations
Constructors
- ConnectorThemeData({Color? color, double? space, double? thickness, double? indent})
-
Creates a theme that can be used for ConnectorTheme or
TimelineThemeData.connectorTheme.
const
Properties
- color → Color?
-
The color of SolidLineConnectors and connectors inside TimelineNodes,
and so forth.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- indent → double?
-
The amount of empty space at the edge of SolidLineConnector.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- space → double?
-
This represents the amount of horizontal or vertical space the connector
takes up.
final
- thickness → double?
-
The thickness of the line drawn within the connector.
final
Methods
-
copyWith(
{Color? color, double? space, double? thickness, double? indent}) → ConnectorThemeData - Creates a copy of this object with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
ConnectorThemeData? a, ConnectorThemeData? b, double t) → ConnectorThemeData - Linearly interpolate between two Connector themes.