promptReplacementBuilder property

ReplacementBuilder? promptReplacementBuilder
final

Replace the prompt button with your own custom widget. Returns the BuildContext and the Function to call to scroll to top.

Example:

promptReplacementBuilder: (context, function) {
                  return MaterialButton(
                    onPressed: () {
                      function();
                    },
                    child: Text('Scroll to top'),
                  );
                },

Implementation

final ReplacementBuilder? promptReplacementBuilder;