encodeNotchedShape static method

String? encodeNotchedShape(
  1. NotchedShape? value
)

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

  • circular

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

Implementation

static String? encodeNotchedShape(NotchedShape? value) {
  assert(value == null || value is CircularNotchedRectangle);
  String? result;

  if (value != null) {
    result = 'circular';
  }

  return result;
}