M3ETooltip constructor

const M3ETooltip({
  1. required Widget child,
  2. String? message,
  3. String? richTitle,
  4. String? richMessage,
  5. List<Widget> actions = const <Widget>[],
  6. bool persistent = false,
  7. M3ETooltipPlacement? preferredPlacement,
  8. Duration? dismissDelay,
  9. M3ETooltipController? controller,
  10. Key? key,
})

M3ETooltip.

Implementation

const M3ETooltip({
  required this.child,
  this.message,
  this.richTitle,
  this.richMessage,
  this.actions = const <Widget>[],
  this.persistent = false,
  this.preferredPlacement,
  this.dismissDelay,
  this.controller,
  super.key,
}) : assert(
       message != null || richMessage != null,
       'Provide a plain message or a rich message.',
     ),
     assert(
       !persistent || richMessage != null,
       'persistent is only supported for rich tooltips.',
     );