PopupMessage constructor

const PopupMessage({
  1. Key? key,
  2. required Widget child,
  3. required Widget content,
  4. EdgeInsets padding = const EdgeInsets.all(10),
  5. EdgeInsets margin = const EdgeInsets.all(5),
  6. Color bgColor = Colors.white,
  7. Size size = const Size(7, 7),
  8. double maxWidth = 200,
  9. double radius = 4,
  10. Color barrierColor = const Color(0x05000000),
  11. FutureOr<bool> onPreShow()?,
})

Implementation

const PopupMessage({
  super.key,
  required this.child,
  required this.content,
  this.padding = const EdgeInsets.all(10),
  this.margin = const EdgeInsets.all(5),
  this.bgColor = Colors.white,
  this.size = const Size(7, 7),
  this.maxWidth = 200,
  this.radius = 4,
  this.barrierColor = const Color(0x05000000),
  this.onPreShow,
});