getAvailableProviders method
Returns list of available health providers on the current device.
On iOS, this always returns an empty list (HealthKit is implicit). On Android, returns providers that are installed and meet requirements.
Implementation
@override
Future<List<Map<String, dynamic>>> getAvailableProviders() async {
final result = await _channel.invokeMethod<List<Object?>>('getAvailableProviders');
if (result == null) return [];
return result
.whereType<Map<Object?, Object?>>()
.map((map) => map.map((key, value) => MapEntry(key as String, value)))
.toList();
}