Skip to content

Conversation

@Abhishek01039
Copy link
Contributor

part of #84014

@flutter-dashboard flutter-dashboard bot added a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) c: contributor-productivity Team-specific productivity, code health, technical debt. labels Jun 6, 2021
@google-cla google-cla bot added the cla: yes label Jun 6, 2021
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after nits

responseDataCallback: (Map<String, dynamic>? data) async {
await driver.writeResponseData(
data['performance'] as Map<String, dynamic>,
data?['performance'] as Map<String, dynamic>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a !, if data is null here, that would be a bug.

final String routeName = startEvent['args']['to'] as String;
durations[routeName] ??= <int>[];
durations[routeName].add(timestamp - frameStart);
durations[routeName]?.add(timestamp - frameStart!);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

! instead of ? since its garanteed to be non-null here.

@Abhishek01039 Abhishek01039 requested a review from goderbauer June 7, 2021 17:26
@fluttergithubbot fluttergithubbot merged commit 3749ff0 into flutter:master Jun 7, 2021
@Piinks Piinks added a: null-safety Support for Dart's null safety feature c: tech-debt Technical debt, code quality, testing, etc. labels Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: null-safety Support for Dart's null safety feature c: contributor-productivity Team-specific productivity, code health, technical debt. c: tech-debt Technical debt, code quality, testing, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants