Minimal repo to demonstrate peculiar dart behaviour