ButtonLayerBuilder typedef
The type for ButtonStyle.backgroundBuilder and ButtonStyle.foregroundBuilder.
The states
parameter is the button's current pressed/hovered/etc state. The child
is
typically a descendant of the returned widget.
Implementation
typedef ButtonLayerBuilder = Widget Function(BuildContext context, Set<MaterialState> states, Widget? child);