removeRegions method
The function removeRegions
is an asynchronous method that removes regions based on the provided
regionId
and returns a Future
of type String
.
@param {String} regionId
- The regionId
parameter is an optional string that represents the ID
of a region. It is used to specify which region should be removed. If no regionId
is provided,
all regions will be removed.
@returns The method is returning a Future object that resolves to a String value or null.
Implementation
@override
Future<String?> removeRegions([String? regionId]) async {
final returnVal =
await methodChannel.invokeMethod<String>('removeRegions', regionId);
return returnVal;
}