Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gen_dart_package_config.PackageConfig Class Reference

Public Member Functions

 __init__ (self, packages)
 
 asdict (self)
 

Public Attributes

 packages
 
 VERSION
 

Static Public Attributes

int VERSION = 2
 
 GENERATOR_NAME = os.path.basename(__file__)
 

Detailed Description

Definition at line 26 of file gen_dart_package_config.py.

Constructor & Destructor Documentation

◆ __init__()

gen_dart_package_config.PackageConfig.__init__ (   self,
  packages 
)

Definition at line 33 of file gen_dart_package_config.py.

33 def __init__(self, packages):
34 self.packages = packages
35

Member Function Documentation

◆ asdict()

gen_dart_package_config.PackageConfig.asdict (   self)
Converts the package config to a dictionary

Definition at line 36 of file gen_dart_package_config.py.

36 def asdict(self):
37 """Converts the package config to a dictionary"""
38 return {
39 'configVersion': self.VERSION,
40 'packages': [p._asdict() for p in sorted(self.packages)],
41 'generator': self.GENERATOR_NAME,
42 }
43
44

Member Data Documentation

◆ GENERATOR_NAME

gen_dart_package_config.PackageConfig.GENERATOR_NAME = os.path.basename(__file__)
static

Definition at line 31 of file gen_dart_package_config.py.

◆ packages

gen_dart_package_config.PackageConfig.packages

Definition at line 34 of file gen_dart_package_config.py.

◆ VERSION [1/2]

int gen_dart_package_config.PackageConfig.VERSION = 2
static

Definition at line 28 of file gen_dart_package_config.py.

◆ VERSION [2/2]

gen_dart_package_config.PackageConfig.VERSION

Definition at line 39 of file gen_dart_package_config.py.


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