79494265

Date: 2025-03-08 11:00:59
Score: 1.5
Natty:
Report link

If you don't want to add any dependencies, the following might be a clean way.

myList.where((o) => o.startsWith('foo')).firstOrNull;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lakshay Mittal