BindingEngine class

Engine for handling data bindings

Constructors

BindingEngine()

Properties

channelBindingResolver → ChannelBindingResolver
Get the channel binding resolver for external configuration
no setter
clientBindingResolver → ClientBindingResolver
Get the client binding resolver for external configuration
no setter
hashCode int
The hash code for this object.
no setterinherited
permissionBindingResolver → PermissionBindingResolver
Get the permission binding resolver for external configuration
no setter
resourceBindingResolver → ResourceBindingResolver
Get the resource binding resolver for external configuration
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sandbox ExpressionSandbox
Sandboxing configuration for expression evaluation
getter/setter pair
syncBindingResolver → SyncBindingResolver
Get the sync binding resolver for external configuration
no setter

Methods

containsBindingExpression(String value) bool
Check if a string contains binding expressions
dispose() → void
Dispose resources
extractDependencies(String expression) Set<String>
Extract all state dependencies from an expression
hasBindings(String text) bool
Check if text contains any binding expressions Alias for containsBindingExpression for spec compliance
isBindingExpression(String value) bool
Check if a string is a binding expression (single, complete binding)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerBinding(Map<String, dynamic> bindingDef) → void
Register a binding definition
registerTransform(String name, Function transform) → void
Register a custom transform function
resolve<T>(dynamic value, RenderContext context) → T
Resolve a value (handle bindings)
resolveText(String template, RenderContext context) String
Resolve a text template with embedded binding expressions e.g., "Hello {{name}}, you have {{count}} items"
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clearStaticCaches() → void
Clear static caches used by the binding engine