encodeScrollbarOrientation static method

String? encodeScrollbarOrientation(
  1. ScrollbarOrientation? value
)

Encodes the value to a String. Supported values are:

  • bottom
  • left
  • right
  • top

Implementation

static String? encodeScrollbarOrientation(ScrollbarOrientation? value) {
  String? result;

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

      case ScrollbarOrientation.left:
        result = 'left';
        break;

      case ScrollbarOrientation.right:
        result = 'right';
        break;

      case ScrollbarOrientation.top:
        result = 'top';
        break;
    }
  }

  return result;
}