Skip to content

code in flutter/flutter code base needs to be cleaned up to use 'void' instead of 'Null' as a generic parameter #31869

Closed
@a-siva

Description

@a-siva

Flutter has code of the form

typedef void GestureTapCancelCallback();
GestureTapCancelCallback onTapCancel;
T invokeCallback<T>(String name, RecognizerCallback<T> callback, { String debugReport() }) {
}
main() {
  invokeCallback<Null>('spontaneous onTapCancel', onTapCancel);
}

which leads to runtime errors in strong mode.

All this code needs to be converted to use

(please see issue #31858 for more details).

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failurescustomer-flutter

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions