Closed animeshjain closed 1 year ago
Example:
final doc = YamlEditor(''); doc.update(['bar'], 'val2'); print(doc);
fails with Invalid path: [bar]. Scalar null does not have key bar
Invalid path: [bar]. Scalar null does not have key bar
whereas..
final doc = YamlEditor('foo: val1'); doc.update(['bar'], 'val2'); print(doc);
works fine
I think you need to add an object, when the root object is null.
null
Example:
fails with
Invalid path: [bar]. Scalar null does not have key bar
whereas..
works fine