tryParse static method

DVCidr? tryParse(
  1. String text
)

parse, or null.

Implementation

static DVCidr? tryParse(String text) {
  try {
    return parse(text);
  } on FormatException {
    return null;
  }
}