updateMtu method

void updateMtu(
  1. String deviceId,
  2. int mtu
)

The ATT MTU the platform reported for deviceId, requested or not. Not de-duplicated: the consumer keeps the last value.

Implementation

void updateMtu(String deviceId, int mtu) {
  try {
    onMtuChange?.call(_deviceId(deviceId).canonical, mtu);
  } catch (_) {}
}