Skip to content

Nullable ServiceCall properties #462

Open
@enyo

Description

@enyo

Is there a reason for the clientMetadata, headers, and trailers to be nullable in https://github.com/grpc/grpc-dart/blob/master/lib/src/server/call.dart#L22 ?

Before migrating to null safety, I have always assumed that they were set (and if there were none, the Maps would be empty).

Is this a mistake or should my code handle the scenario when they are null? And if it's on purpose: when can they actually be null?

grpc : 3.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions