You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The value can only be a type [int], [num], [String] or [bool].
Future<void> setCustomKey(String key, Object value) async {
assert(value is int || value is num || value is String || value is bool);
return _delegate.setCustomKey(key, value.toString());
}
Effectively the only thing this method does with Object value is calling .toString() on it.
toString() is implemented in Object, so any Object passed to this method must inherit or override it. Is the assert really necessary?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into a runtime error, caused by an
assert
in firebase_crashlytic's API:firebase_crashlytics.dart#L204:
Effectively the only thing this method does with
Object value
is calling.toString()
on it.toString()
is implemented inObject
, so anyObject
passed to this method must inherit or override it. Is the assert really necessary?Beta Was this translation helpful? Give feedback.
All reactions