SfTreemapThemeData class

Holds the color and typography values for a SfTreemapTheme. Applies a theme to descendant Syncfusion treemap widgets.

To obtain the current theme, use SfTreemapTheme.of.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfTreemapTheme(
      data: SfTreemapThemeData(
        brightness: Brightness.light
      ),
      child: SfTreemap(),
    ),
  );
}

See also:

Mixed in types
Annotations

Constructors

SfTreemapThemeData({Brightness? brightness, TextStyle? legendTextStyle})
Initialize the sfTreemap theme data
factory
SfTreemapThemeData.raw({required Brightness brightness, required TextStyle? legendTextStyle})
Create a SfTreemapThemeData given a set of exact values. All the values must be specified.
const

Properties

brightness Brightness
The brightness of the overall theme of the application for the treemap widgets.
final
hashCode int
The hash code for this object.
no setteroverride
legendTextStyle TextStyle?
Specifies the legend text style of treemap widgets.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Brightness? brightness, TextStyle? legendTextStyle}) SfTreemapThemeData
Creates a copy of this treemap theme data object with the matching fields replaced with the non-null parameter 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(SfTreemapThemeData? a, SfTreemapThemeData? b, double t) SfTreemapThemeData?
Returns the treemap theme data