write method

  1. @override
void write(
  1. BinaryWriter writer,
  2. Color obj
)
override

Is called when a value has to be encoded.

Implementation

@override
void write(BinaryWriter writer, Color obj) => writer.writeInt(obj.value);