postable property

bool get postable

visible determining if postable. This is not a settable attribute but part of post.

Implementation

bool get postable
{
  if (S.isNullOrEmpty(id)) return false;
  if (post != null) return post!;
  if ((value == null) || value is List && value.isEmpty) return false;
  WidgetModel model = this;
  while (model.parent != null) model = model.parent!;
  return true;
}