HandlerDefinition constructor

HandlerDefinition({
  1. ResourceRPCSubtype? subtype,
  2. Iterable<String>? models,
})

Implementation

factory HandlerDefinition({
  $30.ResourceRPCSubtype? subtype,
  $core.Iterable<$core.String>? models,
}) {
  final $result = create();
  if (subtype != null) {
    $result.subtype = subtype;
  }
  if (models != null) {
    $result.models.addAll(models);
  }
  return $result;
}