DVSceneAssetPolicy class final
What an application allows its scenes to load.
Constructors
-
DVSceneAssetPolicy({Set<
String> allowedHosts = const <String>{}, bool requireDigest = true, int? maxBytes}) -
const
Properties
-
allowedHosts
→ Set<
String> -
Hosts a network asset may come from, matched exactly and without case.
Empty allows no network assets at all.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxBytes → int?
-
The largest asset, in bytes, a scene may load.
final
- requireDigest → bool
-
Whether a stored or network asset needs a SHA-256. A bundled asset never
does: the build imported it and the bundle is signed as a whole.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Storage prefixes every tenant may read, such as a shared model library.
final
Methods
-
check(
DVSceneAsset asset, {required String tenant}) → DVSceneAssetRefusal? -
The refusal for
assetundertenant, or null when it may be fetched. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- tenantPrefix → const String