PerformanceEvent constructor
PerformanceEvent({
- PerformanceEventKind? kind,
- Int64? memoryBytes,
- String? thermalState,
- String? operation,
- Int64? milliseconds,
- 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;
}