Returns the ID value from object for type.
object
type
Object? getEntityID<O>( O object, { Type? type, dynamic Function(O o)? idGetter, });