FieldModel.fromUri constructor

FieldModel.fromUri(
  1. Uri? uri
)

Constructs a new instance of FieldModel, from the query parameters of uri. Throws if the conversion fails.

Implementation

factory FieldModel.fromUri(
  Uri? uri,
) {
  try {
    return fromUriOrNull(uri)!;
  } catch (e) {
    assert(false, '$FieldModel.fromUri: $e');
    rethrow;
  }
}