USBControlTransferParameters constructor Null safety

USBControlTransferParameters(
  1. {required USBRequestType requestType,
  2. required USBRecipient recipient,
  3. required int request,
  4. required int value,
  5. required int index}
)

Implementation

factory USBControlTransferParameters(
        {required USBRequestType requestType,
        required USBRecipient recipient,
        required int request,
        required int value,
        required int index}) =>
    USBControlTransferParameters._(
        requestType: requestType.name,
        recipient: recipient.name,
        request: request,
        value: value,
        index: index);