build method
Implementation
@override
Widget build(BuildContext context) {
ListTileThemeData tileTheme = ListTileTheme.of(context);
Color? iconColor = tileTheme.iconColor ??
switch (Theme.of(context).brightness) {
Brightness.light => Colors.black45,
Brightness.dark => null
};
return Flexible(
flex: 0,
child: Padding(
padding: const EdgeInsets.only(
top: 12,
),
child: IconButton(
tooltip: tooltip,
icon: FaIcon(
iconData,
color: iconColor,
),
onPressed: enabled ? onPressed : null,
mouseCursor:
enabled ? SystemMouseCursors.click : SystemMouseCursors.forbidden,
),
),
);
}