Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
scripts.systemhtml.ElementConstructorInfo Class Reference
Inheritance diagram for scripts.systemhtml.ElementConstructorInfo:

Public Member Functions

def __init__ (self, name=None, tag=None, params=[], opt_params=[], factory_provider_name='document')
 
def ConstructorInfo (self, interface_name)
 

Public Attributes

 name
 
 tag
 
 params
 
 opt_params
 
 factory_provider_name
 

Detailed Description

Definition at line 164 of file systemhtml.py.

Constructor & Destructor Documentation

◆ __init__()

def scripts.systemhtml.ElementConstructorInfo.__init__ (   self,
  name = None,
  tag = None,
  params = [],
  opt_params = [],
  factory_provider_name = 'document' 
)

Definition at line 166 of file systemhtml.py.

171 factory_provider_name='document'):
172 self.name = name # The constructor name 'h1' in 'HeadingElement.h1'
173 self.tag = tag or name # The HTML or SVG tag
174 self.params = params
175 self.opt_params = opt_params
176 self.factory_provider_name = factory_provider_name
177

Member Function Documentation

◆ ConstructorInfo()

def scripts.systemhtml.ElementConstructorInfo.ConstructorInfo (   self,
  interface_name 
)

Definition at line 178 of file systemhtml.py.

178 def ConstructorInfo(self, interface_name):
179 info = OperationInfo()
180 info.overloads = None
181 info.declared_name = interface_name
182 info.name = interface_name
183 info.constructor_name = self.name
184 info.js_name = None
185 info.type_name = interface_name
186 # optional parameters are always nullable
187 info.param_infos = [
188 ParamInfo(name=tXn[1],
189 type_id=tXn[0],
190 is_optional=True,
191 is_nullable=True,
192 default_value=None,
193 default_value_is_null=False) for tXn in self.opt_params
194 ]
195 info.requires_named_arguments = True
196 info.factory_parameters = ['"%s"' % self.tag]
197 info.pure_dart_constructor = True
198 return info
199
200

Member Data Documentation

◆ factory_provider_name

scripts.systemhtml.ElementConstructorInfo.factory_provider_name

Definition at line 176 of file systemhtml.py.

◆ name

scripts.systemhtml.ElementConstructorInfo.name

Definition at line 172 of file systemhtml.py.

◆ opt_params

scripts.systemhtml.ElementConstructorInfo.opt_params

Definition at line 175 of file systemhtml.py.

◆ params

scripts.systemhtml.ElementConstructorInfo.params

Definition at line 174 of file systemhtml.py.

◆ tag

scripts.systemhtml.ElementConstructorInfo.tag

Definition at line 173 of file systemhtml.py.


The documentation for this class was generated from the following file: