encodeTabBarIndicatorSize static method

String? encodeTabBarIndicatorSize(
  1. TabBarIndicatorSize? value
)

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

  • label
  • tab

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

Implementation

static String? encodeTabBarIndicatorSize(TabBarIndicatorSize? value) {
  String? result;

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

      case TabBarIndicatorSize.tab:
        result = 'tab';
        break;
    }
  }

  return result;
}