easy_mock_permission_handler 0.1.0 copy "easy_mock_permission_handler: ^0.1.0" to clipboard
easy_mock_permission_handler: ^0.1.0 copied to clipboard

Readable test mock for the permission_handler platform channel, built on easy_mock_channel. Narrate scenarios (granted / denied / service status) with no dependency on permission_handler — it speaks t [...]

0.1.0 #

  • Initial release.
  • mockPermissionHandler — a readable scenario API over the permission_handler platform channel, built on easy_mock_channel. No dependency on permission_handler; speaks the channel's raw wire codes.
  • Per-permission scenarios mockPermissionHandler.camera / .notification: grant / deny / permanentlyDeny / restrict / limit / provisional.
  • Service: serviceEnabled / serviceDisabled / serviceNotApplicable.
  • App settings: openAppSetting / doNotOpenAppSetting.
  • Rationale: showRequestPermissionRationale / doNotShowRequestPermissionRationale.
  • install() sets up the channel and resets to defaults.
  • Supports camera and notification for now.
0
likes
140
points
119
downloads

Documentation

API reference

Publisher

verified publisherahmedomar.com.ly

Weekly Downloads

Readable test mock for the permission_handler platform channel, built on easy_mock_channel. Narrate scenarios (granted / denied / service status) with no dependency on permission_handler — it speaks the channel's raw codes.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

easy_mock_channel, flutter, flutter_test

More

Packages that depend on easy_mock_permission_handler