getPicSize method

String getPicSize(
  1. PhotoSizeEnum size
)

Returns the string representation of the given PhotoSizeEnum value.

If the given value is not found in sizeValue, this method returns '48x48' by default.

Implementation

String getPicSize(PhotoSizeEnum size) {
  return sizeValue[size] ?? '48x48';
}