PaintStyle constructor
PaintStyle({
- String? type,
- ReadonlyArray<
Object> ? paints, - dynamic boundVariables,
- String? id,
- List<
StyleConsumers> ? consumers, - String? name,
- Future<
List< getStyleConsumersAsync()?,StyleConsumers> > - 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),
);