Gesture detection in Flutter TextSpan I found this code
import 'package:flutter/gestures.dart';
...
new RichText(
text: new TextSpan(text: 'Non touchable. ', children: [
new TextSpan(
text: 'Tap here.',
recognizer: new TapGestureRecognizer()..onTap = () => print('Tap Here onTap'),
)
]),
);
Why here double dot ".." is used to access onTap and why It's giving error when I use "." (single dot).