Modal constructor

Modal({
  1. required bool open,
  2. String? title,
  3. Object? child,
  4. List<Object?> children = const [],
  5. Object? actions,
  6. String size = 'md',
  7. String? className,
  8. Map<String, Object?> props = const {},
  9. Map<String, Object?> style = const {},
  10. DartStyle? dartStyle,
  11. void onClose(
    1. Object event
    )?,
  12. bool closeOnBackdrop = true,
})

Creates a modal dialog controlled by open.

Implementation

Modal({
  required this.open,
  this.title,
  this.child,
  this.children = const [],
  this.actions,
  this.size = 'md',
  this.className,
  this.props = const {},
  this.style = const {},
  this.dartStyle,
  this.onClose,
  this.closeOnBackdrop = true,
});