captureMouseInput method

  1. @override
void captureMouseInput(
  1. MouseInputData input
)
override

Captures the given input for this container and its children.

If mouseChildren is true, the input will be captured by all children as well.

Implementation

@override
void captureMouseInput(MouseInputData input) {
  if (!$hasTouchableArea) {
    return;
  }
  if (mouseChildren) {
    /// from last child to the bottom to capture the input.
    for (var i = children.length - 1; i >= 0; --i) {
      children[i].captureMouseInput(input);
    }
  }
  super.captureMouseInput(input);
}