fromValue static method

RelativeDateDisplayMetric fromValue(
  1. String status
)

Implementation

static RelativeDateDisplayMetric fromValue(String status) {
  return values.firstWhere((element) {
    if (Platform.isAndroid) {
      return element.androidValue == status;
    } else if (Platform.isIOS) {
      return element.iOSValue == status;
    }
    return false;
  }, orElse: () => RelativeDateDisplayMetric.seconds);
}