dvAndroidBluetoothAdapterMap function
The adapter, in the shape DVBluetoothAdapter.fromMap reads.
Implementation
Map<String, Object?> dvAndroidBluetoothAdapterMap({
required String address,
required String? name,
required bool powered,
required bool discovering,
}) =>
<String, Object?>{
'path': dvAndroidBluetoothAdapterPath,
// Empty rather than the placeholder. A caller can tell an empty string
// from an address; it cannot tell 02:00:00:00:00:00 from one.
'address': address == dvAndroidRedactedBluetoothAddress ? '' : address,
if (name != null && name.isNotEmpty) 'name': name,
'powered': powered,
'discovering': discovering,
};