getAssetCount method

Future<int> getAssetCount({
  1. PMFilter? filterOption,
  2. RequestType type = RequestType.common,
})

Implementation

Future<int> getAssetCount({
  PMFilter? filterOption,
  RequestType type = RequestType.common,
}) async {
  final filter = filterOption ?? PMFilter.defaultValue();
  final count = await _channel.invokeMethod(
    PMConstants.mGetAssetCount,
    <String, dynamic>{
      'type': type.value,
      'option': filter.toMap(),
    },
  );
  return count ?? 0;
}