CubeNetworkGate class final

Decides whether a URL may be fetched under the live cube policy.

Constructors

CubeNetworkGate(CubeSpec? spec())
Creates a gate reading spec on every decision. A null result — no cube active — is allow-all.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spec → CubeSpec? Function()
The live cube spec source (null = no cube, allow-all).
final

Methods

allows(Uri uri) → bool
Whether uri may be reached.
check(Uri uri) → void
Throws CubeNetworkDeniedException when uri is denied.
denialFor(Uri uri) → String?
The denial note for uri, or null when the gate allows it.
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