PopupMenuItem class Null safety

Implemented types

Constructors

PopupMenuItem({Key? key, String? value, Callback? onTap, bool enabled, double height, EdgeInsets? padding, TextStyle? textStyle, MouseCursor? mouseCursor, required Widget? child})
const
factory
PopupMenuItem.fromJson(Map<String, dynamic> json)
factory

Properties

child Widget?
read-only
copyWith → _$$PopupMenuItemCopyWith<_$PopupMenuItem>
@JsonKey(ignore: true), read-only, override
enabled bool
read-only
hashCode int
The hash code for this object.
read-only, inherited
height double
read-only, override
key Key?
read-only, override
mouseCursor MouseCursor?
read-only
onTap Callback?
read-only
padding EdgeInsets?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textStyle TextStyle?
read-only
value String?
read-only

Methods

map<TResult extends Object?>({required TResult item(PopupMenuItem value), required TResult divider(PopupMenuDivider value), required TResult checked(CheckedPopupMenuItem value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? item(PopupMenuItem value)?, TResult? divider(PopupMenuDivider value)?, TResult? checked(CheckedPopupMenuItem value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult item(PopupMenuItem value)?, TResult divider(PopupMenuDivider value)?, TResult checked(CheckedPopupMenuItem value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult item(Key? key, String? value, Callback? onTap, bool enabled, double height, EdgeInsets? padding, TextStyle? textStyle, MouseCursor? mouseCursor, Widget? child)?, TResult divider(Key? key, double height)?, TResult checked(Key? key, String? value, bool checked, bool enabled, EdgeInsets? padding, double height, MouseCursor? mouseCursor, Widget? child)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult item(Key? key, String? value, Callback? onTap, bool enabled, double height, EdgeInsets? padding, TextStyle? textStyle, MouseCursor? mouseCursor, Widget? child), required TResult divider(Key? key, double height), required TResult checked(Key? key, String? value, bool checked, bool enabled, EdgeInsets? padding, double height, MouseCursor? mouseCursor, Widget? child)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? item(Key? key, String? value, Callback? onTap, bool enabled, double height, EdgeInsets? padding, TextStyle? textStyle, MouseCursor? mouseCursor, Widget? child)?, TResult? divider(Key? key, double height)?, TResult? checked(Key? key, String? value, bool checked, bool enabled, EdgeInsets? padding, double height, MouseCursor? mouseCursor, Widget? child)?}) → TResult?
@optionalTypeArgs, inherited

Operators

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