Closed FaFre closed 3 years ago
Thanks, @FaFre, this PR should be a great addition 👍 The code looks good to me at first read.
I'm concerned about breaking BC. IMO, we have too few changes to make a major version.
Let me think to a way to be backward compatible before merging. Ideas are welcome.
Sure! I'm not entirely certain, but since you didn't defined a clear Signature for onTap
its maybe possible to do a type matching, if the argument is an List or single element. In that way it would be backward compatible.
I'll dig into that way this evening unless you did
I've dug this point.
We cannot infer type as suggested because of typing restriction here
More over, reflection options in Dart are quite hacky-ish.
I'm now in favour of a major.
It's a bit late as it has been merged, but I'm unsure about this solution which add complexity for edge-cases (imo).
Why not adding and onOverlapingTap
callback which is triggered when set AND when when lines overlaps?
Added support for overlapping lines. This will change the signature of the
onTap
callback.