fromString method

Method? fromString(
  1. String val
)

Implementation

Method? fromString(String val) {
  final override = {
    'crop': Method.crop,
    'scale': Method.scale,
  }[val];
// ignore: unnecessary_this
  return this.contains(override) ? override : null;
}