JsonTooltip constructor
JsonTooltip({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- Decoration? decoration,
- bool? enableFeedback,
- bool enableTapToDismiss = true,
- bool? excludeFromSemantics,
- Duration? exitDuration,
- double? height,
- EdgeInsetsGeometry? margin,
- String? message,
- void onTriggered()?,
- EdgeInsetsGeometry? padding,
- bool? preferBelow,
- InlineSpan? richMessage,
- Duration? showDuration,
- TextAlign? textAlign,
- TextStyle? textStyle,
- TooltipTriggerMode? triggerMode,
- double? verticalOffset,
- Duration? waitDuration,
- JsonWidgetData? child,
Implementation
JsonTooltip({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.decoration,
this.enableFeedback,
this.enableTapToDismiss = true,
this.excludeFromSemantics,
this.exitDuration,
this.height,
this.margin,
this.message,
this.onTriggered,
this.padding,
this.preferBelow,
this.richMessage,
this.showDuration,
this.textAlign,
this.textStyle,
this.triggerMode,
this.verticalOffset,
this.waitDuration,
this.child,
}) : super(
jsonWidgetArgs: JsonTooltipBuilderModel.fromDynamic(
{
'decoration': decoration,
'enableFeedback': enableFeedback,
'enableTapToDismiss': enableTapToDismiss,
'excludeFromSemantics': excludeFromSemantics,
'exitDuration': exitDuration,
'height': height,
'margin': margin,
'message': message,
'onTriggered': onTriggered,
'padding': padding,
'preferBelow': preferBelow,
'richMessage': richMessage,
'showDuration': showDuration,
'textAlign': textAlign,
'textStyle': textStyle,
'triggerMode': triggerMode,
'verticalOffset': verticalOffset,
'waitDuration': waitDuration,
'child': child,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonTooltipBuilder(
args: JsonTooltipBuilderModel.fromDynamic(
{
'decoration': decoration,
'enableFeedback': enableFeedback,
'enableTapToDismiss': enableTapToDismiss,
'excludeFromSemantics': excludeFromSemantics,
'exitDuration': exitDuration,
'height': height,
'margin': margin,
'message': message,
'onTriggered': onTriggered,
'padding': padding,
'preferBelow': preferBelow,
'richMessage': richMessage,
'showDuration': showDuration,
'textAlign': textAlign,
'textStyle': textStyle,
'triggerMode': triggerMode,
'verticalOffset': verticalOffset,
'waitDuration': waitDuration,
'child': child,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonTooltipBuilder.kType,
);