DebugReassembleConfig constructor Null safety

DebugReassembleConfig(
  1. {String? widgetName}
)

Create a new DebugReassembleConfig.

Throws a FlutterError if this is called in profile or release mode.

Implementation

DebugReassembleConfig({
  this.widgetName,
}) {
  if (!kDebugMode) {
    throw FlutterError('Cannot instantiate DebugReassembleConfig in profile or release mode.');
  }
}