UserScript constructor

UserScript({
  1. String? groupName,
  2. required String source,
  3. required UserScriptInjectionTime injectionTime,
  4. bool iosForMainFrameOnly = true,
  5. ContentWorld? contentWorld,
})

Implementation

UserScript(
    {this.groupName,
    required this.source,
    required this.injectionTime,
    this.iosForMainFrameOnly = true,
    ContentWorld? contentWorld}) {
  this.contentWorld = contentWorld ?? ContentWorld.PAGE;
}