encodeIconAlignment static method

String? encodeIconAlignment(
  1. IconAlignment? value
)

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

  • end
  • start

Implementation

static String? encodeIconAlignment(IconAlignment? value) {
  String? result;

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

      case IconAlignment.start:
        result = 'start';
        break;
    }
  }

  return result;
}