mapFromDatabaseResponse method Null safety

  1. @override
bool? mapFromDatabaseResponse(
  1. dynamic response
)
override

Maps the response from sql back to a readable dart type.

Implementation

@override
bool? mapFromDatabaseResponse(dynamic response) {
  // ignore: avoid_returning_null
  if (response == null) return null;
  return response != 0;
}