WidgetbookFrame class

Declares a frame for a phone displaying its characteristics.

Annotations
  • @freezed

Constructors

WidgetbookFrame({required String name, required bool allowsDevices})
Creates a new instance of WidgetbookFrame.
const
factory
WidgetbookFrame.defaultFrame()
The default Widgetbook frame This is a container with a small border
factory
WidgetbookFrame.deviceFrame()
A frame based on the device_frame package: https://pub.dev/packages/device_frame
factory
WidgetbookFrame.noFrame()
No frame This can be used to display widgets in isolation, e.g. for Buttons or smaller UI components
factory

Properties

allowsDevices bool
Indicators whether this mode supports specific devices e.g. iPhone 11
no setterinherited
copyWith → $WidgetbookFrameCopyWith<WidgetbookFrame>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name displayed as a tooltip
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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