MapColorMapper constructor
const
MapColorMapper({})
Creates a MapColorMapper.
Implementation
const MapColorMapper({
this.from,
this.to,
this.value,
required this.color,
this.minOpacity,
this.maxOpacity,
this.text,
}) : assert((from == null && to == null) ||
(from != null && to != null && from < to && to > from)),
assert(minOpacity == null || minOpacity != 0),
assert(maxOpacity == null || maxOpacity != 0);