PerformanceEvent constructor

PerformanceEvent({
  1. PerformanceEventKind? kind,
  2. Int64? memoryBytes,
  3. String? thermalState,
  4. String? operation,
  5. Int64? milliseconds,
  6. double? tokensPerSecond,
})

Implementation

factory PerformanceEvent({
  PerformanceEventKind? kind,
  $fixnum.Int64? memoryBytes,
  $core.String? thermalState,
  $core.String? operation,
  $fixnum.Int64? milliseconds,
  $core.double? tokensPerSecond,
}) {
  final result = create();
  if (kind != null) result.kind = kind;
  if (memoryBytes != null) result.memoryBytes = memoryBytes;
  if (thermalState != null) result.thermalState = thermalState;
  if (operation != null) result.operation = operation;
  if (milliseconds != null) result.milliseconds = milliseconds;
  if (tokensPerSecond != null) result.tokensPerSecond = tokensPerSecond;
  return result;
}