getLeftIcon method
Implementation
Widget? getLeftIcon() {
if (leftIcon != null) {
if (highlighted) {
return Icon(
leftIcon!,
color: TUIDefaultColors.onSecondary,
);
} else {
return Icon(
leftIcon!,
color: TUIDefaultColors.onSurface,
);
}
} else if (leftIconImage != null) {
return leftIconImage!;
} else {
return null;
}
}