Expr constructor Null safety

Expr(
  1. {String? expression,
  2. String? title,
  3. String? description,
  4. String? location}
)

Implementation

factory Expr({
  $core.String? expression,
  $core.String? title,
  $core.String? description,
  $core.String? location,
}) {
  final _result = create();
  if (expression != null) {
    _result.expression = expression;
  }
  if (title != null) {
    _result.title = title;
  }
  if (description != null) {
    _result.description = description;
  }
  if (location != null) {
    _result.location = location;
  }
  return _result;
}