self property Null safety

MSchemaRef? self
override

Implementation

MSchemaRef? get self {
  final MSchemaDefinitionMixin self = this;
  if (self is IMEntityDefinition) {
    return (self as IMEntityDefinition).schemaRef;
  } else if (self is IMRefSchemaDefinition) {
    return (self as IMRefSchemaDefinition).schemaRef;
  } else {
    return null;
  }
}