INNER CODE UNIT · Dart

ColorBuilder

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

abstract class ColorBuilder extends PropertyIndexBuilder<Color> {
  const ColorBuilder();
}

// Provide fixed color list to query, it would throw [RangeError] if index out of bound.
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 &&

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…