debugFillDescription method

  1. @override
void debugFillDescription(
  1. List<String> description

Add additional information to the given description for use by toString.

This method makes it easier for subclasses to coordinate to provide a high-quality toString implementation. The toString implementation on the Notification base class calls debugFillDescription to collect useful information from subclasses to incorporate into its return value.

Implementations of this method should start with a call to the inherited method, as in super.debugFillDescription(description).


void debugFillDescription(List<String> description) {
  description.add('overscroll: ${overscroll.toStringAsFixed(1)}');
  description.add('velocity: ${velocity.toStringAsFixed(1)}');
  if (dragDetails != null) {