widget method
Implementation
widget(context) => PopupMenuButton<T>(
initialValue: initialValue,
itemBuilder: itemBuilder ??
(items != null
? (_) => items!
.map(
(v) => PopupMenuItem(
child: Text(v.toString()),
value: v,
),
)
.toList(growable: false)
: null) ??
(_) => [],
onSelected: onSelected ?? (T _) {},
onCanceled: onCanceled,
tooltip: tooltip,
elevation: elevation,
padding: padding?.value ?? const EdgeInsets.all(8.0),
child: child,
icon: icon,
offset: offset ?? Offset.zero,
enabled: enabled ?? true,
shape: shape,
color: color,
enableFeedback: enableFeedback,
iconSize: iconSize,
);