getHomeDevices method
Gets all devices for the given homeId.
homeId is passed on to the native
getHomeDevices function of native is invoked
returns the list of devices
Implementation
@override
Future<List<Map<String, dynamic>>> getHomeDevices({
required int homeId,
}) async {
final result = await methodChannel.invokeMethod<List<dynamic>>(
'getHomeDevices',
{'homeId': homeId},
);
return result?.map((e) => Map<String, dynamic>.from(e as Map)).toList() ??
[];
}