encodeTextScaler static method

String? encodeTextScaler(
  1. TextScaler? value
)

Encodes the given value to the String representation. Supported values are:

  • noScaling

All other values, including null, will result in null.

Implementation

static String? encodeTextScaler(TextScaler? value) {
  String? result;

  if (value != null) {
    switch (value) {
      case TextScaler.noScaling:
        result = 'noScaling';
        break;
    }
  }

  return _stripDynamicNull(result);
}