GenerateDartModel.assertRequired constructor

GenerateDartModel.assertRequired({
  1. String? className,
  2. Set? fields,
  3. bool? shouldInherit,
  4. String? inheritanceConstructor,
  5. String? keyStringCase,
  6. String? description,
})

Constructs a new instance of GenerateDartModel, and asserts that all required parameters are not null.

Implementation

factory GenerateDartModel.assertRequired({
  String? className,
  Set<dynamic>? fields,
  bool? shouldInherit,
  String? inheritanceConstructor,
  String? keyStringCase,
  String? description,
}) {
  return GenerateDartModel(
    className: className,
    fields: fields,
    shouldInherit: shouldInherit,
    inheritanceConstructor: inheritanceConstructor,
    keyStringCase: keyStringCase,
    description: description,
  );
}