ContextMenuItem class Null safety

Class that represent an item of the ContextMenu.

Constructors

ContextMenuItem({int? androidId, String? iosId, required String title, dynamic action()?})

Properties

action ↔ (dynamic Function?()?)
Menu item action that will be called when an user clicks on it.
read / write
androidId int?
Android menu item ID.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
iosId String?
iOS menu item ID.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
title String
Menu item title.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object. [...]
override

Operators

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