FFRandomData constructor

FFRandomData({
  1. FFRandomInteger? integer,
  2. FFRandomString? string,
  3. bool? isList,
  4. @Deprecated('This field is deprecated.') int? legacyMinLength,
  5. @Deprecated('This field is deprecated.') int? legacyMaxLength,
  6. FFRandomDouble? doubl,
  7. FFRandomDate? date,
  8. FFRandomName? name,
  9. FFRandomImage? image,
  10. FFRandomColor? color,
  11. FFValue? minLength,
  12. FFValue? maxLength,
})

Implementation

factory FFRandomData({
  FFRandomInteger? integer,
  FFRandomString? string,
  $core.bool? isList,
  @$core.Deprecated('This field is deprecated.') $core.int? legacyMinLength,
  @$core.Deprecated('This field is deprecated.') $core.int? legacyMaxLength,
  FFRandomDouble? doubl,
  FFRandomDate? date,
  FFRandomName? name,
  FFRandomImage? image,
  FFRandomColor? color,
  FFValue? minLength,
  FFValue? maxLength,
}) {
  final result = create();
  if (integer != null) result.integer = integer;
  if (string != null) result.string = string;
  if (isList != null) result.isList = isList;
  if (legacyMinLength != null) result.legacyMinLength = legacyMinLength;
  if (legacyMaxLength != null) result.legacyMaxLength = legacyMaxLength;
  if (doubl != null) result.doubl = doubl;
  if (date != null) result.date = date;
  if (name != null) result.name = name;
  if (image != null) result.image = image;
  if (color != null) result.color = color;
  if (minLength != null) result.minLength = minLength;
  if (maxLength != null) result.maxLength = maxLength;
  return result;
}