Url constructor Null safety

Url(
  1. {String? spec}
)

Implementation

factory Url({
  $core.String? spec,
}) {
  final _result = create();
  if (spec != null) {
    _result.spec = spec;
  }
  return _result;
}