NgSwitchWhenDirective class
@NgDirective( selector: '[ng-switch-when]', children: NgAnnotation.TRANSCLUDE_CHILDREN, map: const { '.': '@value' } ) class NgSwitchWhenDirective { final NgSwitchDirective ngSwitch; final BlockHole hole; final BoundBlockFactory blockFactory; final Scope scope; NgSwitchWhenDirective(NgSwitchDirective this.ngSwitch, BlockHole this.hole, BoundBlockFactory this.blockFactory, Scope this.scope); set value(String value) => ngSwitch.addCase('!$value', hole, blockFactory); }
Constructors
new NgSwitchWhenDirective(NgSwitchDirective ngSwitch, BlockHole hole, BoundBlockFactory blockFactory, Scope scope) #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.
docs inherited from Object
NgSwitchWhenDirective(NgSwitchDirective this.ngSwitch, BlockHole this.hole, BoundBlockFactory this.blockFactory, Scope this.scope);
Properties
final BoundBlockFactory blockFactory #
final BoundBlockFactory blockFactory
final NgSwitchDirective ngSwitch #
final NgSwitchDirective ngSwitch
dynamic set value(String value) #
set value(String value) => ngSwitch.addCase('!$value', hole, blockFactory);