mapFromDatabaseResponse method Null safety

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

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

Implementation

@override
double? mapFromDatabaseResponse(dynamic response) {
  return (response as num?)?.toDouble();
}