ViewportAddon class final
A DecoratorAddon for changing the active device/frame. It's based on
the device_frame package.
- Inheritance
- 
    - Object
- ChangeNotifier
- Addon
- ViewportAddon
 
- Mixed-in types
Constructors
- 
          ViewportAddon({required List<DeviceInfo> devices, List<DeviceInfo> initialDevices = const []})
Properties
- 
  actions
  → List<Widget> 
- 
  
  no setteroverride
- 
  devices
  → List<DeviceInfo> 
- 
  
  final
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- hasListeners → bool
- 
  Whether any listeners are currently registered.
  no setterinherited
- id → String
- 
  
  no setteroverride
- 
  initialDevices
  → List<DeviceInfo> 
- 
  
  final
- initialSerializedState → dynamic
- 
  
  no setterinherited
- initialValue → ViewportState
- 
  
  no setteroverride
- 
  panels
  → List<Panel< PanelAddon> >
- 
  
  no setteroverride
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- value ↔ ViewportState
- 
  
  getter/setter pairinherited
Methods
- 
  addListener(VoidCallback listener) → void 
- 
  Register a closure to be called when the object changes.
  inherited
- 
  buildEditor(BuildContext context) → Widget? 
- 
  
  override
- 
  decode(dynamic state) → void 
- 
  Read state from json-like object
  override
- 
  decorate(BuildContext context) → List< Decorator> 
- 
  
  override
- 
  dispose() → void 
- 
  Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
  inherited
- 
  encode() → Map< String, dynamic> 
- 
  Serialize state to json encodable object
  override
- 
  encodeWithDifference() → dynamic 
- 
  Encode state and return difference from initial state.
  inherited
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  notifyListeners() → void 
- 
  Call all the registered listeners.
  inherited
- 
  removeListener(VoidCallback listener) → void 
- 
  Remove a previously registered closure from the list of closures that are
notified when the object changes.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited