encodeOverflowBoxFit static method

String? encodeOverflowBoxFit(
  1. OverflowBoxFit? value
)

Encodes the value to a String. Supported values are:

  • deferToChild
  • max

Implementation

static String? encodeOverflowBoxFit(OverflowBoxFit? value) {
  String? result;

  if (value != null) {
    switch (value) {
      case OverflowBoxFit.deferToChild:
        result = 'deferToChild';
        break;

      case OverflowBoxFit.max:
        result = 'max';
        break;
    }
  }
  return _stripDynamicNull(result);
}