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