toFlutter method
Implementation
@override
Alignment toFlutter(AnyWidgetContext context) {
return map(
(value) => Alignment(value.x, value.y),
bottomCenter: (_) => Alignment.bottomCenter,
bottomLeft: (_) => Alignment.bottomLeft,
bottomRight: (_) => Alignment.bottomRight,
center: (_) => Alignment.center,
centerLeft: (_) => Alignment.centerLeft,
centerRight: (_) => Alignment.centerRight,
topCenter: (_) => Alignment.topCenter,
topLeft: (_) => Alignment.topLeft,
topRight: (_) => Alignment.topRight,
);
}