fromString static method

IOSAnimationStyle? fromString(
  1. String? value
)

Creates an IOSAnimationStyle from a string value

Implementation

static IOSAnimationStyle? fromString(String? value) {
  switch (value) {
    case 'none':
      return IOSAnimationStyle.none;
    case 'bottomToTop':
      return IOSAnimationStyle.bottomToTop;
    case 'rightToLeft':
      return IOSAnimationStyle.rightToLeft;
    default:
      return null;
  }
}