FPopupItem<T> constructor
FPopupItem<T> ({})
Implementation
FPopupItem({
super.key,
Widget? child,
super.value,
String? text,
double? fontSize,
Color? fontColor,
FontWeight? fontWeight,
String? icon,
double? iconSize,
double? height,
}) : assert(
!(child == null && text == null),
'child 或 text 必须传入一项',
),
super(
child: child ??
_FPopupChild(
text: text!,
fontSize: fontSize,
fontWeight: fontWeight,
fontColor: fontColor,
icon: icon,
iconSize: iconSize,
),
height: height ?? 20,
);