FlatListItem constructor
Constructs a FlatListItem with white background. This is the primary constructor that is also the most customizable.
Implementation
FlatListItem({
@required BuildContext context,
int indexInList = 0,
double cornerRadius = 0.0,
ScalePreset scalePreset = ScalePreset.normal,
Color backgroundColor = Colors.white,
Icon icon,
String leftLabelText,
String leftDataText,
String rightLabelText,
String rightDataText,
Color leftLabelTextColor = Colors.grey,
Color leftDataTextColor = Colors.black,
Color rightLabelTextColor = Colors.grey,
Color rightDataTextColor = Colors.black,
FontWeight leftLabelTextFontWeight = FontWeight.normal,
FontWeight leftDataTextFontWeight = FontWeight.normal,
FontWeight rightLabelTextFontWeight = FontWeight.normal,
FontWeight rightDataTextFontWeight = FontWeight.normal,
bool showHangingDivider = true,
Color hangingDividerColor = Colors.lightGreen,
OnItemTap onTap,
}) : _context = context,
_indexInList = indexInList,
_scalePreset = scalePreset,
_cornerRadius = cornerRadius,
_backgroundColor = backgroundColor,
_icon = icon,
_leftLabelText = leftLabelText,
_leftDataText = leftDataText,
_rightLabelText = rightLabelText,
_rightDataText = rightDataText,
_leftLabelTextColor = leftLabelTextColor,
_leftDataTextColor = leftDataTextColor,
_rightLabelTextColor = rightLabelTextColor,
_rightDataTextColor = rightDataTextColor,
_hangingDividerColor = hangingDividerColor,
_leftLabelTextFontWeight = leftLabelTextFontWeight,
_leftDataTextFontWeight = leftDataTextFontWeight,
_rightLabelTextFontWeight = rightLabelTextFontWeight,
_rightDataTextFontWeight = rightDataTextFontWeight,
_showHangingDivider = showHangingDivider,
_onTap = onTap;