JsonTooltip constructor

JsonTooltip({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. Decoration? decoration,
  4. bool? enableFeedback,
  5. bool enableTapToDismiss = true,
  6. bool? excludeFromSemantics,
  7. Duration? exitDuration,
  8. double? height,
  9. EdgeInsetsGeometry? margin,
  10. String? message,
  11. void onTriggered()?,
  12. EdgeInsetsGeometry? padding,
  13. bool? preferBelow,
  14. InlineSpan? richMessage,
  15. Duration? showDuration,
  16. TextAlign? textAlign,
  17. TextStyle? textStyle,
  18. TooltipTriggerMode? triggerMode,
  19. double? verticalOffset,
  20. Duration? waitDuration,
  21. 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,
      );