expectBoxHasKey static method
Assert that a box contains a specific key.
Implementation
static void expectBoxHasKey(Box box, dynamic key) {
if (!box.containsKey(key)) {
throw AssertionError('Box should contain key: $key');
}
}
Assert that a box contains a specific key.
static void expectBoxHasKey(Box box, dynamic key) {
if (!box.containsKey(key)) {
throw AssertionError('Box should contain key: $key');
}
}