favoriteAsset method

Future<bool> favoriteAsset(
  1. String id,
  2. bool favorite
)

Implementation

Future<bool> favoriteAsset(String id, bool favorite) async {
  final bool? result = await _channel.invokeMethod(
    PMConstants.mFavoriteAsset,
    <String, dynamic>{'id': id, 'favorite': favorite},
  );
  return result == true;
}