PopupMenuEntry class Null safety

Implementers
Annotations
  • @freezed

Constructors

PopupMenuEntry.checked({Key? key, String? value, @Default(false) bool checked, @Default(true) bool enabled, EdgeInsets? padding, @Default(48.0) double height, MouseCursor? mouseCursor, Widget? child})
const
factory
PopupMenuEntry.divider({Key? key, @Default(16.0) double height})
const
factory
PopupMenuEntry.fromJson(Map<String, Object?> json)
factory
PopupMenuEntry.item({Key? key, String? value, Callback? onTap, @Default(true) bool enabled, @Default(48.0) double height, EdgeInsets? padding, TextStyle? textStyle, MouseCursor? mouseCursor, required Widget? child})
const
factory

Properties

copyWith → $PopupMenuEntryCopyWith<PopupMenuEntry>
@JsonKey(ignore: true), read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
height double
read-only, inherited
key Key?
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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