deserializerNullableClause method

String deserializerNullableClause({
  1. required FieldElement field,
  2. required Sqlite fieldAnnotation,
  3. required String name,
})
inherited

Injected between the field member in the constructor and the contents

Implementation

String deserializerNullableClause({
  required FieldElement field,
  required FieldAnnotation fieldAnnotation,
  required String name,
}) {
  return fieldAnnotation.nullable && field.type.nullabilitySuffix != NullabilitySuffix.none
      ? "data['$name'] == null ? null :"
      : '';
}