notustohtml
notustohtml copied to clipboard
The argument type 'Delta' can't be assigned to the parameter type 'Delta*'.
notustohtml: ^0.0.8
var notus = NotusDocument.fromJson(json);
final converter = NotusHtmlCodec();
String html = converter.encode(notus.toDelta());
This happens maybe because you are using zefyrka instead of zefyr The Delta object/class is not the same you can try this work around but only run your app with no null safety
import 'package:notus/notus.dart' as notuslib;
import 'package:notustohtml/notustohtml.dart';
import 'package:quill_delta/quill_delta.dart';
var notus = notuslib.NotusDocument.fromJson(json);
final converter = NotusHtmlCodec();
String html = converter.encode(notus.toDelta());
Also note that notustohtml: 1.0.0-rc.2
does support null safety