getHomeList method
Retrieves a list of all homes. getHomeList function of the native is invoked returns the list of homes
Implementation
@override
Future<List<Map<String, dynamic>>> getHomeList() async {
final List<dynamic>? list = await methodChannel.invokeMethod<List<dynamic>>(
'getHomeList',
);
return (list ?? []).map((e) => Map<String, dynamic>.from(e)).toList();
}