Closed mukhtharcm closed 1 year ago
Ah thanks, I'll sort that. Still trying to figure out how to properly test everything 😅
Thank you for the fast response!
Should be fixed here https://github.com/invertase/dart_edge/commit/f1dba9960570e1f2d4cc57b5ccf82257eaee12ac and in 0.0.2+2
Figured out a testing flow now sorted will be able to test everything 👍
While accessing non existing kv keys, currently it's throwing an error.
Unhandled Promise Rejection: Error: TypeError: null: type 'JSNull' is not a subtype of type 'FutureOr<String>'
I'm no expert in these, but a better idea would be to make the return type of
get
from kvNamespace fromFuture<String>
toFuture<String?>
. Then we can check if the key exists by checking if the value is null.