ViewNotFoundException constructor

ViewNotFoundException({
  1. required PlatformException exception,
  2. 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(),
     );