toFlutter method

  1. @override
BoxFit toFlutter(
  1. AnyWidgetContext config
)
override

Implementation

@override
BoxFit toFlutter(AnyWidgetContext config) {
  return map(
    contain: (_) => BoxFit.contain,
    cover: (_) => BoxFit.cover,
    fill: (_) => BoxFit.fill,
    fitHeight: (_) => BoxFit.fitHeight,
    fitWidth: (_) => BoxFit.fitWidth,
    none: (_) => BoxFit.none,
    scaleDown: (_) => BoxFit.scaleDown,
  );
}