call method

  1. @useResult
FScaffoldStyle call(
  1. Object? _
)
inherited

Returns itself.

Allows FScaffoldStyle to replace functions that accept and return a FScaffoldStyle, such as a style's copyWith(...) function.

Example

Given:

void copyWith(FScaffoldStyle Function(FScaffoldStyle) nestedStyle) {}

The following:

copyWith((style) => FScaffoldStyle(...));

Can be replaced with:

copyWith(FScaffoldStyle(...));

Implementation

@useResult
FScaffoldStyle call(Object? _) => this as FScaffoldStyle;