encodeListTileStyle static method

String? encodeListTileStyle(
  1. ListTileStyle? value
)

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

  • drawer
  • list

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

Implementation

static String? encodeListTileStyle(ListTileStyle? value) {
  String? result;

  if (value != null) {
    switch (value) {
      case ListTileStyle.drawer:
        result = 'drawer';
        break;
      case ListTileStyle.list:
        result = 'list';
        break;
    }
  }

  return _stripDynamicNull(result);
}