write method

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

Is called when a value has to be encoded.

Implementation

@override
void write(BinaryWriter writer, MephistoPersistentTheme obj) {
  writer
    ..writeByte(14)
    ..writeByte(0)
    ..write(obj.primaryColor)
    ..writeByte(1)
    ..write(obj.primaryColorString)
    ..writeByte(2)
    ..write(obj.fontFamily)
    ..writeByte(3)
    ..write(obj.borderRadius)
    ..writeByte(4)
    ..write(obj.borderWidth)
    ..writeByte(5)
    ..write(obj.isDarkTheme)
    ..writeByte(6)
    ..write(obj.showBottomNavbarLabels)
    ..writeByte(7)
    ..write(obj.enableBottomNavbarFeedbacks)
    ..writeByte(8)
    ..write(obj.isFilledBgWidgets)
    ..writeByte(9)
    ..write(obj.darkFillColor)
    ..writeByte(10)
    ..write(obj.lightFillColor)
    ..writeByte(11)
    ..write(obj.darkLineColor)
    ..writeByte(12)
    ..write(obj.lightLineColor)
    ..writeByte(13)
    ..write(obj.captionTextAndIconColor);
}