list property

Object? get list

Implementation

Object? get list => _wrapped.list?.when(
      isArray: (v) => v.toDart.cast<double>().map((e) => e).toList(),
    );
set list (Object? v)

Implementation

set list(Object? v) {
  _wrapped.list = switch (v) {
    List<double>() => v.toJSArray((e) => e),
    List<int>() => v.toJSArray((e) => e),
    List() => v.toJSArrayString(),
    null => null,
    _ => throw UnsupportedError(
        'Received type: ${v.runtimeType}. Supported types are: List<double>, List<int>, List<String>')
  };
}