associate method
Implementation
@override
Future<CompanionDeviceAssociation> associate(
CompanionDeviceAssociationRequest request,
) async {
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>(
'associate',
request.toMap(),
);
if (result == null) {
throw PlatformException(
code: 'association_failed',
message: 'The platform returned no association result.',
);
}
return CompanionDeviceAssociation.fromMap(result);
}