getWriteLength method Null safety

  1. @override
int getWriteLength()
override

Gets the length of the write data when WriteTo will be called.

Implementation

@override
int getWriteLength() => 2;