of method Null safety

MOperationDefinition of(
  1. {required MOperationRef? operationRef,
  2. MOperationRef? implements_,
  3. MSchemaRef? owningType,
  4. String? operationLabel,
  5. String? operationDescription,
  6. bool? isAssisted = false,
  7. bool? isVirtual = false,
  8. String? realm,
  9. List<String>? requiredTokens,
  10. IMSchemaDefinition? inputSchema,
  11. IMSchemaDefinition? outputSchema,
  12. IMSchemaDefinition? initSchema}
)

Implementation

static MOperationDefinition of({
  required MOperationRef? operationRef,
  MOperationRef? implements_,
  MSchemaRef? owningType,
  String? operationLabel,
  String? operationDescription,
  bool? isAssisted = false,
  bool? isVirtual = false,
  String? realm,
  List<String>? requiredTokens,
  IMSchemaDefinition? inputSchema,
  IMSchemaDefinition? outputSchema,
  IMSchemaDefinition? initSchema
  }) {
  final self = MOperationDefinition(<String, dynamic>{}, mtype: MOperationDefinitionRef, update: true);
  if (operationRef != null) self.operationRef = operationRef;
  if (implements_ != null) self.implements_ = implements_;
  if (owningType != null) self.owningType = owningType;
  if (operationLabel != null) self.operationLabel = operationLabel;
  if (operationDescription != null) self.operationDescription = operationDescription;
  if (isAssisted != null) self.isAssisted = isAssisted;
  if (isVirtual != null) self.isVirtual = isVirtual;
  if (realm != null) self.realm = realm;
  if (requiredTokens != null) self.requiredTokens = requiredTokens;
  if (inputSchema != null) self.inputSchema = inputSchema;
  if (outputSchema != null) self.outputSchema = outputSchema;
  if (initSchema != null) self.initSchema = initSchema;
  return self;
}