fromString static method

ShareResult fromString(
  1. String? value
)

Implementation

static ShareResult fromString(String? value) {
  switch (value?.toLowerCase()) {
    case 'shared':
      return ShareResult.shared;
    case 'cancelled':
      return ShareResult.cancelled;
    default:
      return ShareResult.error;
  }
}