INNER CODE UNIT · Dart

FixedColorListBuilder

TinoGuo/pin_input_text_field · lib/src/builder/color_builder.dart:11

class FixedColorListBuilder extends ColorBuilder {
  final List<Color> colorList;

  const FixedColorListBuilder(this.colorList);

  @override
  Color indexProperty(int index) => colorList[index];

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is FixedColorListBuilder &&
          runtimeType == other.runtimeType &&
          colorList == other.colorList;

  @override
  int get hashCode => colorList.hashCode;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…