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