bool shouldNull(Object? obj, String errmsg) { if (obj != null) throw FlutterError(errmsg); return true; }