onWarning property

void Function(String warning)? onWarning
getter/setter pair

Developer warnings (duplicate id etc.).

Debug builds print them via debugPrint on their own — the check is debug-only, so release pays nothing. Set a callback to capture them instead (tests, a dev panel); it fires in addition to the print.

Implementation

void Function(String warning)? onWarning;