shouldIncludeField method

bool shouldIncludeField(
  1. bool serverCode
)

Returns true, if classes should include this field. serverCode specifies if it's a code on the server or client side.

See also:

Implementation

bool shouldIncludeField(bool serverCode) {
  return scope == ModelFieldScopeDefinition.all ||
      (serverCode && scope == ModelFieldScopeDefinition.serverOnly);
}