copyWith method

AlexaDevice copyWith({
  1. String? deviceID,
  2. Map<String, dynamic>? supportedInterfaces,
  3. String? persistentEndpointID,
})

Implementation

AlexaDevice copyWith(
    {String? deviceID,
    Map<String, dynamic>? supportedInterfaces,
    String? persistentEndpointID}) {
  return AlexaDevice(
      deviceID: deviceID ?? this.deviceID,
      supportedInterfaces: supportedInterfaces ?? this.supportedInterfaces,
      persistentEndpointID:
          persistentEndpointID ?? this.persistentEndpointID);
}