getEntitlements method
Get all current entitlements for the user.
Implementation
Future<List<Entitlement>> getEntitlements() async {
final result = await _channel.invokeMethod('getEntitlements');
return (result as List)
.map((e) => Entitlement.fromMap(Map<dynamic, dynamic>.from(e)))
.toList();
}