toSimple method Null safety

  1. @override
double toSimple()
override

returns a simple, json compatible representation of the content

Implementation

@override
double toSimple() {
  return value;
}