GenerateDartModel.fromUri constructor

GenerateDartModel.fromUri(
  1. Uri? uri
)

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

Implementation

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