SfMapsThemeData.raw constructor
SfMapsThemeData.raw({
- Brightness? brightness,
- Color? layerColor,
- Color? layerStrokeColor,
- double? layerStrokeWidth,
- Color? shapeHoverColor,
- Color? shapeHoverStrokeColor,
- double? shapeHoverStrokeWidth,
- TextStyle? legendTextStyle,
- Color? markerIconColor,
- Color? markerIconStrokeColor,
- double? markerIconStrokeWidth,
- TextStyle? dataLabelTextStyle,
- Color? bubbleColor,
- Color? bubbleStrokeColor,
- double? bubbleStrokeWidth,
- Color? bubbleHoverColor,
- Color? bubbleHoverStrokeColor,
- double? bubbleHoverStrokeWidth,
- Color? selectionColor,
- Color? selectionStrokeColor,
- double? selectionStrokeWidth,
- Color? tooltipColor,
- Color? tooltipStrokeColor,
- double? tooltipStrokeWidth,
- BorderRadiusGeometry? tooltipBorderRadius,
- Color? toggledItemColor,
- Color? toggledItemStrokeColor,
- double? toggledItemStrokeWidth,
Returns a new instance of SfMapsThemeData.raw for the given values.
If any of the values are null, the default values will be set.
Implementation
factory SfMapsThemeData.raw({
Brightness? brightness,
Color? layerColor,
Color? layerStrokeColor,
double? layerStrokeWidth,
Color? shapeHoverColor,
Color? shapeHoverStrokeColor,
double? shapeHoverStrokeWidth,
TextStyle? legendTextStyle,
Color? markerIconColor,
Color? markerIconStrokeColor,
double? markerIconStrokeWidth,
TextStyle? dataLabelTextStyle,
Color? bubbleColor,
Color? bubbleStrokeColor,
double? bubbleStrokeWidth,
Color? bubbleHoverColor,
Color? bubbleHoverStrokeColor,
double? bubbleHoverStrokeWidth,
Color? selectionColor,
Color? selectionStrokeColor,
double? selectionStrokeWidth,
Color? tooltipColor,
Color? tooltipStrokeColor,
double? tooltipStrokeWidth,
BorderRadiusGeometry? tooltipBorderRadius,
Color? toggledItemColor,
Color? toggledItemStrokeColor,
double? toggledItemStrokeWidth,
}) {
brightness = brightness ?? Brightness.light;
layerStrokeWidth ??= 1.0;
markerIconStrokeWidth ??= 1.0;
bubbleStrokeWidth ??= 1.0;
selectionStrokeWidth ??= 0.5;
tooltipStrokeWidth ??= 1.0;
tooltipBorderRadius ??= const BorderRadius.all(Radius.circular(4.0));
return SfMapsThemeData(
layerColor: layerColor,
layerStrokeColor: layerStrokeColor,
shapeHoverColor: shapeHoverColor,
shapeHoverStrokeColor: shapeHoverStrokeColor,
legendTextStyle: legendTextStyle,
markerIconColor: markerIconColor,
markerIconStrokeColor: markerIconStrokeColor,
dataLabelTextStyle: dataLabelTextStyle,
bubbleColor: bubbleColor,
bubbleStrokeColor: bubbleStrokeColor,
bubbleStrokeWidth: bubbleStrokeWidth,
bubbleHoverColor: bubbleHoverColor,
bubbleHoverStrokeColor: bubbleHoverStrokeColor,
bubbleHoverStrokeWidth: bubbleHoverStrokeWidth,
selectionColor: selectionColor,
selectionStrokeColor: selectionStrokeColor,
tooltipColor: tooltipColor,
tooltipStrokeColor: tooltipStrokeColor,
tooltipStrokeWidth: tooltipStrokeWidth,
tooltipBorderRadius: tooltipBorderRadius,
selectionStrokeWidth: selectionStrokeWidth,
layerStrokeWidth: layerStrokeWidth,
shapeHoverStrokeWidth: shapeHoverStrokeWidth,
markerIconStrokeWidth: markerIconStrokeWidth,
toggledItemColor: toggledItemColor,
toggledItemStrokeColor: toggledItemStrokeColor,
toggledItemStrokeWidth: toggledItemStrokeWidth,
);
}