FollyCell.positive constructor
FollyCell.positive(})
Implementation
factory FollyCell.positive(
dynamic value, {
EdgeInsets padding = EdgeInsets.zero,
Alignment align = Alignment.centerRight,
Color color = Colors.transparent,
TextAlign textAlign = TextAlign.end,
TextStyle? style,
String zeroText = '- ',
bool selectable = false,
Key? key,
}) =>
value is num && value > 0
? FollyCell.number(
value,
padding: padding,
align: align,
color: color,
textAlign: textAlign,
style: style,
selectable: selectable,
key: key,
)
: FollyCell.text(
zeroText,
padding: padding,
align: align,
color: color,
textAlign: textAlign,
style: style,
selectable: selectable,
key: key,
);