getAssetCount method
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;
}