inkSparkle method Null safety

Future<FragmentShaderManager> inkSparkle()

Creates an FragmentShaderManager with an InkSparkle effect.

Implementation

static Future<FragmentShaderManager> inkSparkle() async {
  final FragmentShaderManager manager = FragmentShaderManager._();
  _program = await ui.FragmentProgram.fromAsset(
    'shaders/ink_sparkle.frag',
  );
  return manager;
}