onTouchBegin property Null safety

EventStream<TouchEvent> onTouchBegin

Dispatched when the user first contacts a touch-enabled device.

You have to opt-in for touch events by setting the InputEventMode to TouchOnly or MouseAndTouch in the stage options.

Implementation

EventStream<TouchEvent> get onTouchBegin =>
    InteractiveObject.touchBeginEvent.forTarget(this);