encodeBottomNavigationBarLandscapeLayout static method

String? encodeBottomNavigationBarLandscapeLayout(
  1. BottomNavigationBarLandscapeLayout? value
)

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

  • centered
  • linear
  • spread

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

Implementation

static String? encodeBottomNavigationBarLandscapeLayout(
  BottomNavigationBarLandscapeLayout? value,
) {
  String? result;

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

      case BottomNavigationBarLandscapeLayout.linear:
        result = 'linear';
        break;

      case BottomNavigationBarLandscapeLayout.spread:
        result = 'spread';
        break;
    }
  }

  return _stripDynamicNull(result);
}