Flutter Engine
tonic::DartConverter< DartList > Struct Template Reference

#include <dart_list.h>

Static Public Member Functions

static DartList FromArguments (Dart_NativeArguments args, int index, Dart_Handle &exception)
 

Detailed Description

template<>
struct tonic::DartConverter< DartList >

Definition at line 51 of file dart_list.h.

Member Function Documentation

◆ FromArguments()

DartList tonic::DartConverter< DartList >::FromArguments ( Dart_NativeArguments  args,
int  index,
Dart_Handle &  exception 
)
static

Definition at line 38 of file dart_list.cc.

References tonic::LogIfError().

40  {
41  Dart_Handle list = Dart_GetNativeArgument(args, index);
42  if (LogIfError(list) || !Dart_IsList(list)) {
43  exception = Dart_NewApiError("Invalid Argument");
44  return DartList();
45  }
46 
47  return DartList(list);
48 }
G_BEGIN_DECLS FlValue * args
bool LogIfError(Dart_Handle handle)
Definition: dart_error.cc:15

The documentation for this struct was generated from the following files: