OdooGroup class
Represents a
Constructors
-
OdooGroup({required String id, String? label, List<
OdooField> fields = const [], List<OdooGroup> subGroups = const [], int? colspan, bool fillBrk = false, bool expand = false, String? expandButtonLabel, int? col, String? groups, bool invisible = false, String? attrs, int nestingLevel = 0, required DateTime createdAt, required DateTime updatedAt}) -
const
-
OdooGroup.create({String? label, List<
OdooField> ? fields, int? colspan}) -
Factory — creates a new group with generated ID
factory
-
OdooGroup.fromJson(Map<
String, dynamic> json) -
factory
Properties
- attrs → String?
-
final
- col → int?
-
final
- colspan → int?
-
final
- createdAt → DateTime
-
final
- expand → bool
-
final
- expandButtonLabel → String?
-
final
-
fields
→ List<
OdooField> -
final
- fillBrk → bool
-
final
- groups → String?
-
final
- hasContent → bool
-
Whether this group has any content
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- invisible → bool
-
final
- label → String?
-
final
- nestingLevel → int
-
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited -
subGroups
→ List<
OdooGroup> -
final
- totalFieldCount → int
-
Total number of fields recursively
no setter
- updatedAt → DateTime
-
final
Methods
-
copyWith(
{String? id, String? label, List< OdooField> ? fields, List<OdooGroup> ? subGroups, int? colspan, bool? fillBrk, bool? expand, String? expandButtonLabel, int? col, String? groups, bool? invisible, String? attrs, int? nestingLevel}) → OdooGroup -
duplicate(
) → OdooGroup - Returns a deep copy with a fresh ID (used when duplicating)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
toXml(
{int indent = 8}) → String
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited