parentId property

Object? get parentId

The ID of the item to be made this item's parent. Note: You cannot set an item to become a child of its own descendant.

Implementation

Object? get parentId => _wrapped.parentId?.when(
      isInt: (v) => v,
      isString: (v) => v,
    );
set parentId (Object? v)

Implementation

set parentId(Object? v) {
  _wrapped.parentId = switch (v) {
    int() => v.jsify()!,
    String() => v.jsify()!,
    null => null,
    _ => throw UnsupportedError(
        'Received type: ${v.runtimeType}. Supported types are: int, String')
  };
}