block method

Future<void> block(
  1. String number
)

Blocks a phone number.

E.164 format is auto-generated from the number. Throws PlatformException with code "security_error" if API unavailable.

Implementation

Future<void> block(String number) async {
  await blockAll([number]);
}