encodeBoxWidthStyle static method

String? encodeBoxWidthStyle(
  1. BoxWidthStyle? value
)

Encodes the value to a String. Supported values are:

  • max
  • tight

Implementation

static String? encodeBoxWidthStyle(BoxWidthStyle? value) {
  String? result;

  if (value != null) {
    switch (value) {
      case BoxWidthStyle.max:
        result = 'max';
        break;
      case BoxWidthStyle.tight:
        result = 'tight';
        break;
    }
  }

  return result;
}