toFlutter method

  1. @override
Alignment toFlutter(
  1. AnyWidgetContext context
)
override

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,
  );
}