HardwareProfileResult constructor

HardwareProfileResult({
  1. HardwareProfile? profile,
  2. Iterable<AcceleratorInfo>? accelerators,
})

Implementation

factory HardwareProfileResult({
  HardwareProfile? profile,
  $core.Iterable<AcceleratorInfo>? accelerators,
}) {
  final result = create();
  if (profile != null) result.profile = profile;
  if (accelerators != null) result.accelerators.addAll(accelerators);
  return result;
}