getAssetCount static method

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

Returns the count of assets.

This static method invokes the getAssetCount() method of the plugin object to get the count of all assets. The optional filterOption parameter allows you to filter the assets based on specific criteria. By default, the type parameter is set to RequestType.common, which means that only common assets are counted.

Parameters:

  • filterOption: An optional parameter of type PMFilter that filters the assets based on specific criteria. Defaults to null.
  • type: An optional parameter of type RequestType. Specifies the type of asset to count. Defaults to RequestType.common.

Returns: A Future<int> object representing the number of assets requested.

Implementation

static Future<int> getAssetCount({
  PMFilter? filterOption,
  RequestType type = RequestType.common,
}) {
  return plugin.getAssetCount(filterOption: filterOption, type: type);
}