map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult center(),
- required TResult left(),
- required TResult right(),
Implementation
TResult map<TResult extends Object?>({
required TResult Function(PageBlockHorizontalAlignmentCenter value) center,
required TResult Function(PageBlockHorizontalAlignmentLeft value) left,
required TResult Function(PageBlockHorizontalAlignmentRight value) right,
}) {
switch (getConstructor()) {
case PageBlockHorizontalAlignmentCenter.constructor:
return center.call(this as PageBlockHorizontalAlignmentCenter);
case PageBlockHorizontalAlignmentLeft.constructor:
return left.call(this as PageBlockHorizontalAlignmentLeft);
case PageBlockHorizontalAlignmentRight.constructor:
return right.call(this as PageBlockHorizontalAlignmentRight);
}
throw StateError('not handled type Generator');
}