encode method

String? encode()

Implementation

String? encode() {
  switch (this) {
    case FlexDirection.ROW:
      return 'ROW';
    case FlexDirection.COLUMN:
      return 'COLUMN';
    case FlexDirection.UNKNOWN:
      return null;
  }
}