Line data Source code
1 : /// An exception thrown when the required platform specific permission 2 : /// definications could not be found (e.g. in the AndroidManifest.xml file on 3 : /// Android or in the Info.plist file on iOS). 4 : class PermissionDefinitionsNotFoundException implements Exception { 5 : /// Constructs the [PermissionDefinitionsNotFoundException] 6 2 : const PermissionDefinitionsNotFoundException(this.message); 7 : 8 : /// A [message] describing more details on the denied permission. 9 : final String? message; 10 : 11 1 : @override 12 : String toString() { 13 3 : if (message == null || message == '') { 14 : return 'Permission definitions are not found. Please make sure you have ' 15 : 'added the necessary definitions to the configuration file (e.g. ' 16 : 'the AndroidManifest.xml on Android or the Info.plist on iOS).'; 17 : } 18 1 : return message!; 19 : } 20 : }