getAssetCount static method
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 typePMFilter
that filters the assets based on specific criteria. Defaults to null.type
: An optional parameter of typeRequestType
. Specifies the type of asset to count. Defaults toRequestType.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);
}