boxFit static method

BoxFit boxFit(
  1. dynamic value
)

Implementation

static BoxFit boxFit(dynamic value) => switch (value) {
      'fill' => BoxFit.fill,
      'contain' => BoxFit.contain,
      'cover' => BoxFit.cover,
      'fitWidth' => BoxFit.fitWidth,
      'fitHeight' => BoxFit.fitHeight,
      'scaleDown' => BoxFit.scaleDown,
      _ => BoxFit.none
    };