toFlutter method

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

Implementation

@override
AlignmentDirectional toFlutter(AnyWidgetContext context) {
  return map(
    (value) => AlignmentDirectional(value.start, value.y),
    bottomCenter: (_) => AlignmentDirectional.bottomCenter,
    bottomStart: (_) => AlignmentDirectional.bottomStart,
    bottomEnd: (_) => AlignmentDirectional.bottomEnd,
    center: (_) => AlignmentDirectional.center,
    centerStart: (_) => AlignmentDirectional.centerStart,
    centerEnd: (_) => AlignmentDirectional.centerEnd,
    topCenter: (_) => AlignmentDirectional.topCenter,
    topStart: (_) => AlignmentDirectional.topStart,
    topEnd: (_) => AlignmentDirectional.topEnd,
  );
}