TUIOverlayMobileStyle constructor
TUIOverlayMobileStyle({
- required TUIOverlayMobileStyleType style,
- String? title,
- dynamic action()?,
- 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));
}
}