Tooltip constructor

const Tooltip({
  1. Key? key,
  2. required String message,
  3. required Widget child,
  4. bool preferBelow = true,
  5. Color? background,
  6. Color? textColor,
  7. IconData? icon,
  8. double borderRadius = 8,
  9. EdgeInsets margin = const EdgeInsets.all(8),
  10. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  11. Duration waitDuration = const Duration(milliseconds: 400),
  12. double verticalOffset = 24,
})

Implementation

const Tooltip({
  super.key,
  required this.message,
  required this.child,
  this.preferBelow = true,
  this.background,
  this.textColor,
  this.icon,
  this.borderRadius = 8,
  this.margin = const EdgeInsets.all(8),
  this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  this.waitDuration = const Duration(milliseconds: 400),
  this.verticalOffset = 24,
});