debugCheckContext method

  1. @mustCallSuper
bool debugCheckContext(
  1. BuildContext context
)

Asserts that the given context satisfies the prerequisites for this class.

This method is intended to be overridden by descendants that specialize InkResponse for unusual cases. For example, TableRowInkWell implements this method to verify that the widget is in a table.

Implementation

@mustCallSuper
bool debugCheckContext(BuildContext context) {
  assert(debugCheckHasMaterial(context));
  assert(debugCheckHasDirectionality(context));
  return true;
}