mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
For consistency with the rest of dart:ui, check required parameters with assert(param != null) rather than throwing ArgumentError. ArgumentError is typically reserved for checking the validity of non-null args -- e.g. that a list has the required number of elements.