From f280c8b9bd3c3791525eed33d9a36e9b99192c59 Mon Sep 17 00:00:00 2001 From: thomashii Date: Sun, 21 Mar 2021 09:35:56 +0800 Subject: [PATCH] Fixed null safety --- packages/mock_request/lib/src/request.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mock_request/lib/src/request.dart b/packages/mock_request/lib/src/request.dart index df994f5b..e79a6795 100644 --- a/packages/mock_request/lib/src/request.dart +++ b/packages/mock_request/lib/src/request.dart @@ -135,12 +135,12 @@ class MockHttpRequest @override void write(Object? obj) { - obj?.toString()?.codeUnits?.forEach(writeCharCode); + obj?.toString().codeUnits.forEach(writeCharCode); } @override void writeAll(Iterable objects, [String separator = '']) { - write(objects.join(separator ?? '')); + write(objects.join(separator)); } @override @@ -231,7 +231,7 @@ class MockHttpRequest @override Future join([String separator = '']) => - _stream.stream.join(separator ?? ''); + _stream.stream.join(separator); @override Future get last => _stream.stream.last;