TUIOverlayMobileStyle constructor

TUIOverlayMobileStyle({
  1. required TUIOverlayMobileStyleType style,
  2. String? title,
  3. dynamic action()?,
  4. IconData? icon,
})

Implementation

TUIOverlayMobileStyle(
    {required this.style, this.title, this.action, this.icon}) {
  if (style == TUIOverlayMobileStyleType.handle) {
    assert((title == null) && (action == null) && (icon == null));
  } else if (style == TUIOverlayMobileStyleType.onlyTitle) {
    assert((title != null) && (action == null) && (icon == null));
  } else if (style == TUIOverlayMobileStyleType.left) {
    assert((title != null) && (action != null) && (icon == null));
  } else if (style == TUIOverlayMobileStyleType.right) {
    assert((title != null) && (action != null) && (icon != null));
  }
}