toFlutter method

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

Implementation

@override
EdgeInsetsDirectional toFlutter(AnyWidgetContext context) {
  return map(
    all: (value) => EdgeInsetsDirectional.all(value.value),
    only: (value) => EdgeInsetsDirectional.only(
      start: value.start ?? 0.0,
      top: value.top ?? 0.0,
      end: value.end ?? 0.0,
      bottom: value.bottom ?? 0.0,
    ),
  );
}