Pkg class

A package in the project, declared once in tool/flutterware.dart and referenced by every plugin that operates on it.

Declaring it as a value rather than repeating a path string per plugin means the path is written once, and a typo is a compile error instead of a silent no-op.

Constructors

Pkg(String path)
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
name → String
The last path segment, as a default display name.
no setter
path → String
Directory relative to the repo root — packages/admin, or . for a single-package project.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Map<String, Object?> json) → Pkg