maybeMap<TResult extends Object?> method
TResult
maybeMap<TResult extends Object?>({
- TResult bottom()?,
- TResult middle()?,
- TResult top()?,
- required TResult orElse(),
Implementation
TResult maybeMap<TResult extends Object?>({
TResult Function(PageBlockVerticalAlignmentBottom value)? bottom,
TResult Function(PageBlockVerticalAlignmentMiddle value)? middle,
TResult Function(PageBlockVerticalAlignmentTop value)? top,
required TResult Function() orElse,
}) {
switch (getConstructor()) {
case PageBlockVerticalAlignmentBottom.constructor:
if (bottom != null) {
return bottom.call(this as PageBlockVerticalAlignmentBottom);
}
break;
case PageBlockVerticalAlignmentMiddle.constructor:
if (middle != null) {
return middle.call(this as PageBlockVerticalAlignmentMiddle);
}
break;
case PageBlockVerticalAlignmentTop.constructor:
if (top != null) {
return top.call(this as PageBlockVerticalAlignmentTop);
}
break;
}
return orElse.call();
}