getAssetCount method

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

Implementation

Future<int> getAssetCount({
  PMFilter? filterOption,
  RequestType type = RequestType.common,
}) {
  final filter = filterOption ?? PMFilter.defaultValue();

  return _channel.invokeMethod<int>(PMConstants.mGetAssetCount, {
    'type': type.value,
    'option': filter.toMap(),
  }).then((v) => v ?? 0);
}