Skip to content

Commit

Permalink
move baseUri to function call instance
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Aug 1, 2024
1 parent 4bcd74b commit a85d087
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions functions_call/lib/src/functions_call.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,21 @@ mixin FirebaseFunctionsCallDefaultMixin implements FirebaseFunctionsCall {
/// Firebase functions call service
abstract class FirebaseFunctionsCallService {
/// Get the firebase functions call instance
FirebaseFunctionsCall functionsCall(App app, {required String region});
FirebaseFunctionsCall functionsCall(App app,
{required String region,

/// Not used in flutter
Uri? baseUri});
}

/// Firebase functions call service default mixin
mixin FirebaseFunctionsCallServiceDefaultMixin
implements FirebaseFunctionsCallService {
@override
FirebaseFunctionsCall functionsCall(App app, {required String region}) {
FirebaseFunctionsCall functionsCall(App app,
{required String region, Uri? baseUri}) {
throw UnimplementedError(
'FirebaseFunctionsCallService.functionsCall(${app.name}, $region)');
'FirebaseFunctionsCallService.functionsCall(${app.name}, $region${baseUri != null ? ', $baseUri' : ''})');
}
}

Expand Down

0 comments on commit a85d087

Please sign in to comment.