AssetReference.collection constructor

const AssetReference.collection(
  1. String name, {
  2. String? encryptionKey,
  3. double gain = defaultGain,
})

Create an instance with its type set to AssetType.collection.

Implementation

const AssetReference.collection(
  this.name, {
  this.encryptionKey,
  this.gain = defaultGain,
}) : type = AssetType.collection;