dart version of sparkflow fbp implementation