@@ -551,31 +551,6 @@ class NoSuchMethodError extends Error {
551
551
external factory NoSuchMethodError .withInvocation (
552
552
Object ? receiver, Invocation invocation);
553
553
554
- /// Create a [NoSuchMethodError] corresponding to a failed method call.
555
- ///
556
- /// The [receiver] is the receiver of the method call.
557
- /// That is, the object on which the method was attempted called.
558
- /// If the receiver is `null` , it is interpreted as a call to a top-level
559
- /// function of a library.
560
- ///
561
- /// The [memberName] is a [Symbol] representing the name of the called method
562
- /// or accessor.
563
- ///
564
- /// The [positionalArguments] is a list of the positional arguments that the
565
- /// method was called with. If `null` , it is considered equivalent to the
566
- /// empty list.
567
- ///
568
- /// The [namedArguments] is a map from [Symbol] s to the values of named
569
- /// arguments that the method was called with. If `null` , it is considered
570
- /// equivalent to the empty map.
571
- ///
572
- /// This constructor does not handle type arguments.
573
- /// To include type variables, create an [Invocation] and use
574
- /// [NoSuchMethodError.withInvocation] .
575
- @Deprecated ("Use NoSuchMethod.withInvocation instead" )
576
- external NoSuchMethodError (Object ? receiver, Symbol memberName,
577
- List ? positionalArguments, Map <Symbol , dynamic >? namedArguments);
578
-
579
554
external String toString ();
580
555
}
581
556
0 commit comments