AffogatoWorkspaceConfigs constructor
AffogatoWorkspaceConfigs({
- Map<
String, PaneData> ? defaultPanesData, - String? activePane,
- PaneList? panesLayout,
- required String projectName,
- required Map<
String, PaneInstanceData> instancesData, - required ThemeBundle<
dynamic, Color, TextStyle, TextSpan> themeBundle, - required Map<
LanguageBundle, List< languageBundles,String> > - required AffogatoStylingConfigs stylingConfigs,
- required List<
AffogatoExtension> extensions,
Implementation
AffogatoWorkspaceConfigs({
Map<String, PaneData>? defaultPanesData,
String? activePane,
PaneList? panesLayout,
required this.projectName,
required this.instancesData,
required this.themeBundle,
required this.languageBundles,
required this.stylingConfigs,
required this.extensions,
}) : panesData =
defaultPanesData ?? {utils.generateId(): PaneData(instances: [])},
vfs = AffogatoVFS(
root: AffogatoVFSEntity.dir(
entityId: utils.generateId(),
name: projectName,
files: [],
subdirs: [],
),
) {
if (panesLayout != null) this.panesLayout = panesLayout;
activePane = activePane ?? panesData.keys.first;
}