backgroundPoints property

List<(int, String)>? get backgroundPoints

(for type = gradient) gradient points.

Implementation

List<(int position, String color)>? get backgroundPoints =>
    (_background?['points'] as List?)
        ?.map((e) => ((e as Map)['position'] as int, e['color'] as String))
        .toList();