graphic icon indicating copy to clipboard operation
graphic copied to clipboard

Use records instead of lists

Open Pante opened this issue 2 years ago • 3 comments

Hey there! I've recently found this library and I'm having a blast using it. There's one minor annoyance where the API accepts lists of 2 elements instead of tuples. For example, RectCoord.horizontalRange. Would it be possible to update those to use tuples instead? I'll be happy to PR it.

Pante avatar Jun 07 '23 14:06 Pante

As far as I know, there is no tuple in dart yet. There will be the Record in dart 3, which is an other name of tuple. When dart 3 is widely used, I will update such properties' types to Record.

entronad avatar Jun 08 '23 09:06 entronad

Ah my bad, I meant records*.

Pante avatar Jun 08 '23 09:06 Pante

OK. It will be imported progressively, for it is a breaking change and not compatible with dart 2.

entronad avatar Jun 09 '23 02:06 entronad