ViewNotFoundException constructor
ViewNotFoundException({
- required PlatformException exception,
- required StackTrace stacktrace,
Creates a ViewNotFoundException from an original PlatformException.
Implementation
ViewNotFoundException({
required PlatformException exception,
required StackTrace stacktrace,
}) : assert(exception.code == platformCode),
super(
code: exception.code,
message: exception.message ?? 'Platform view not found.',
details: exception.details,
stacktrace: stacktrace.toString(),
);