PaintStyle constructor

PaintStyle({
  1. String? type,
  2. ReadonlyArray<Object>? paints,
  3. dynamic boundVariables,
  4. String? id,
  5. List<StyleConsumers>? consumers,
  6. String? name,
  7. Future<List<StyleConsumers>> getStyleConsumersAsync()?,
  8. void remove()?,
})

Implementation

factory PaintStyle({
  _i2.String? type,
  _i4.ReadonlyArray<_i2.Object>? paints,
  _i2.dynamic boundVariables,
  _i2.String? id,
  _i2.List<_i3.StyleConsumers>? consumers,
  _i2.String? name,
  _i2.Future<_i2.List<_i3.StyleConsumers>> Function()? getStyleConsumersAsync,
  void Function()? remove,
}) =>
    PaintStyle._(
      type: type,
      paints: paints ?? _i7.undefined,
      boundVariables: boundVariables,
      id: id,
      consumers: consumers,
      name: name,
      getStyleConsumersAsync: getStyleConsumersAsync == null
          ? null
          : _i5.allowInterop(getStyleConsumersAsync),
      remove: remove == null ? null : _i5.allowInterop(remove),
    );