Skip to content

Commit 56b987d

Browse files
committed
refactor: update placeCall assertion descriptions
1 parent 44c162b commit 56b987d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_internal/twilio_voice_web.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,8 @@ class Call extends MethodChannelTwilioCall {
784784
Future<bool?> place({required String from, required String to, Map<String, dynamic>? extraOptions}) async {
785785
assert(device != null,
786786
"Twilio device is null, make sure you have initialized the device first by calling [ setTokens({required String accessToken, String? deviceToken}) ] ");
787-
assert(from.isNotEmpty, "From cannot be empty");
788-
assert(to.isNotEmpty, "To cannot be empty");
787+
assert(from.isNotEmpty, "'from' cannot be empty");
788+
assert(to.isNotEmpty, "'to' cannot be empty");
789789
assert(extraOptions?.keys.contains("From") ?? true, "From cannot be passed in extraOptions");
790790
assert(extraOptions?.keys.contains("To") ?? true, "To cannot be passed in extraOptions");
791791

0 commit comments

Comments
 (0)