map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult bottom(),
- required TResult middle(),
- required TResult top(),
Implementation
TResult map<TResult extends Object?>({
required TResult Function(PageBlockVerticalAlignmentBottom value) bottom,
required TResult Function(PageBlockVerticalAlignmentMiddle value) middle,
required TResult Function(PageBlockVerticalAlignmentTop value) top,
}) {
switch (getConstructor()) {
case PageBlockVerticalAlignmentBottom.constructor:
return bottom.call(this as PageBlockVerticalAlignmentBottom);
case PageBlockVerticalAlignmentMiddle.constructor:
return middle.call(this as PageBlockVerticalAlignmentMiddle);
case PageBlockVerticalAlignmentTop.constructor:
return top.call(this as PageBlockVerticalAlignmentTop);
}
throw StateError('not handled type Generator');
}