debugFillDescription method

  1. @override
void debugFillDescription (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 State base class calls debugFillDescription to collect useful information from subclasses to incorporate into its return value.

If you override this, make sure to start your method with a call to super.debugFillDescription(description).


void debugFillDescription(List<String> description) {
  if (debugLabel != null)
  description.add('range: ${minScrollExtent?.toStringAsFixed(1)}..${maxScrollExtent?.toStringAsFixed(1)}');
  description.add('viewport: ${viewportDimension?.toStringAsFixed(1)}');