CmsEntry<T> class abstract

There are few basic entries already implemented: *CmsBoolEntry for handling bool values *CmsTextEntry for handling String values *CmsDateEntry for handling DateTime values *CmsToManyDropdownEntry for handling toMany references

Implementers
Annotations

Constructors

CmsEntry()

Properties

editable bool
no setter
expanded bool
no setter
fixedLabel String
Real display of the field. If null, last segment of key is displayed
no setter
fixedLabelRequired String
Adds * at the end of the label
no setter
flex int
  • Defines size of the CmsTableItem in the CmsTable
  • final
    hashCode int
    The hash code for this object.
    no setterinherited
    initializable bool
    no setter
    key String
  • key is a path to the value in JsonMap. It may be staggered e.g. user.data.image. To see how it works check JsonMapExtensions
  • final
    label String?
  • label displays the name of the entry. To find out more check fixedLabel
  • final
    modifier CmsEntryModifier
    Modifies the behavior of the CmsEntry
    final
    pinned bool
    no setter
    required bool
    no setter
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    sortable bool
    no setter
    sortInvertNulls bool
    no setter

    Methods

    buildEditField({required BuildContext context, required T value, required void onChanged(T)}) Widget
    Builder for edit/create flow. It provides context, current value and onChanged method. It is recommended to wrap it in the CmsFieldWrapper.
    buildPreview(BuildContext context, T value) Widget
    Preview of the value shown in the CmsTable
    fromJson(Object? json) → T?
    simple fromJson method, e.g. int.parse(json.toString) for an int value.
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    onSaved() Future<void>
    toJson(T value) Object?
    simple toJson method, e.g. 12.toString for an int value.
    toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited