parentId property

Object? get parentId

The ID of a parent menu item; this makes the item a child of a previously added item.

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')
  };
}