accepts method

bool accepts(
  1. String scheme
)

Whether uri's scheme is declared by either platform.

http and https always count: they reach the app through an association file rather than a declared scheme.

Implementation

bool accepts(String scheme) =>
    scheme == 'http' || scheme == 'https' || schemes.contains(scheme);