Option constructor Null safety

Option(
  1. {String? name,
  2. Any? value}
)

Implementation

factory Option({
  $core.String? name,
  $1.Any? value,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (value != null) {
    _result.value = value;
  }
  return _result;
}