StarGiftBackground.deserialize constructor

StarGiftBackground.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory StarGiftBackground.deserialize(BinaryReader reader) {
  // Read [StarGiftBackground] fields.
  final centerColor = reader.readInt32();
  final edgeColor = reader.readInt32();
  final textColor = reader.readInt32();

  // Construct [StarGiftBackground] object.
  final returnValue = StarGiftBackground(
    centerColor: centerColor,
    edgeColor: edgeColor,
    textColor: textColor,
  );

  // Now return the deserialized [StarGiftBackground].
  return returnValue;
}