itemShape property

WidgetStateProperty<ShapeBorder?>? itemShape
final

To set a customize shape of individual footer items based on their state, such as hovered or pressed.

Example:

@override
Widget build(BuildContext context) {
  return SfAIAssistView(
    responseToolbarSettings: AssistMessageToolbarSettings(
      itemShape: WidgetStateProperty.resolveWith(
        (Set<WidgetState> state) {
          return const RoundedRectangleBorder(
              borderRadius: BorderRadius.all(Radius.circular(8.0)));
        },
      ),
    ),
  );
}

Implementation

final WidgetStateProperty<ShapeBorder?>? itemShape;