serialize method Null safety

  1. @override
double serialize()
override

Implementation

@override
double serialize() {
  return value;
}