fromString static method

TestPlatform? fromString(
  1. String? value
)

Converts user readable string to TestPlatform

Implementation

static TestPlatform? fromString(String? value) {
  switch (value?.toLowerCase()) {
    case 'android':
      return TestPlatform.android;
    case 'ios':
      return TestPlatform.iOS;
    default:
      return null;
  }
}