MousePopupButton<T> class
create_user: zhengzaihong email:1096877329@qq.com create_date: 2024/2/5 create_time: 16:53 describe: 鼠标右键弹出窗 防止移动端误入使用鼠标右键弹出窗,这里外部推荐方 1方式处理
web端处理的方式 规避浏览器鼠标右键的方式: 方式1.在 web/index.html 中加入 script代码。屏蔽右键 方式2.import 'dart:html' as html 导入后使用 window对象 屏蔽 html.document.body!.addEventListener('contextmenu', (event) => event.preventDefault());
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MousePopupButton
- Available extensions
Constructors
-
MousePopupButton({Widget? child, PopupMenuItemBuilder<
T> ? itemBuilder, PopupMenuCanceled? onCanceled, PopupMenuItemSelected<T> ? onSelected, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, BoxConstraints? constraints, Key? key}) -
const
Properties
- child → Widget?
-
final
- color → Color?
-
final
- constraints → BoxConstraints?
-
final
- elevation → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → T?
-
final
-
itemBuilder
→ PopupMenuItemBuilder<
T> ? -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCanceled → PopupMenuCanceled?
-
final
-
onSelected
→ PopupMenuItemSelected<
T> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
final
- shape → ShapeBorder?
-
final
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< MousePopupButton< T> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited